On Tue, 2004-08-10 at 16:22, David D. Hagood wrote: > 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) Just guessing but are you calling rpmtsSetRootDir() before running the transaction? Even if the rootdir is set to NULL you have to initialize it on rpm >= 4.1, otherwise all scriptlets will fail. - Panu - _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list