[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RPM %post dying - pthread, fork, execve



I have a problem with a program using librpm - when RPMs containing %post scriptlets are installed, the scriptlet dies. This does not happen when running rpm from the command line.

The problem *seems* to be related to pthreads, fork, and execve - the program is using pthreads, and librpm uses fork&execve to launch the shell. From what I've seen elsewhere, there seems to be a problem when using fork&execve in a pthreads environment.

Does anybody have any suggestions on how I could do one of the following:

Resolve the fork&execve problem
Gain control over libRPM to launch sub-shells with my own code (so that I could use something other than fork&execve)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]