diff options
author | ewt <devnull@localhost> | 1996-12-12 03:35:01 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-12-12 03:35:01 +0000 |
commit | dec77c92e85e56f81a083a1ed02a3f39aab6bb4b (patch) | |
tree | 3f96101de90531170c0fb27b1ad343c4ad4c219c /lib | |
parent | 82b53b60a1767a3f8395748c0d1a2ba0062b0b25 (diff) | |
download | rpm-dec77c92e85e56f81a083a1ed02a3f39aab6bb4b.tar.gz rpm-dec77c92e85e56f81a083a1ed02a3f39aab6bb4b.tar.bz2 rpm-dec77c92e85e56f81a083a1ed02a3f39aab6bb4b.zip |
use _exit instead of exit in forks
CVS patchset: 1233
CVS date: 1996/12/12 03:35:01
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmlead.c | 1 | ||||
-rw-r--r-- | lib/signature.c | 6 | ||||
-rw-r--r-- | lib/uninstall.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/rpmlead.c b/lib/rpmlead.c index 4e4bcc8e1..45b8ccf84 100644 --- a/lib/rpmlead.c +++ b/lib/rpmlead.c @@ -8,6 +8,7 @@ #include <unistd.h> #include <string.h> #include <errno.h> +#include <sys/types.h> #include "rpmlib.h" #include "rpmlead.h" diff --git a/lib/signature.c b/lib/signature.c index e7d94e27e..12c175c86 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -213,7 +213,7 @@ static int makePGPSignature(char *file, void **sig, int_32 *size, name, "-sb", file, sigfile, NULL); rpmError(RPMERR_EXEC, "Couldn't exec pgp"); - exit(RPMERR_EXEC); + _exit(RPMERR_EXEC); } fpipe = fdopen(inpipe[1], "w"); @@ -385,7 +385,7 @@ static int verifyPGPSignature(char *datafile, void *sig, NULL); printf("exec failed!\n"); rpmError(RPMERR_EXEC, "Could not run pgp. Use --nopgp to skip PGP checks."); - exit(RPMERR_EXEC); + _exit(RPMERR_EXEC); } close(outpipe[1]); @@ -468,7 +468,7 @@ static int checkPassPhrase(char *passPhrase) name, "-sf", NULL); rpmError(RPMERR_EXEC, "Couldn't exec pgp"); - exit(RPMERR_EXEC); + _exit(RPMERR_EXEC); } fpipe = fdopen(passPhrasePipe[1], "w"); diff --git a/lib/uninstall.c b/lib/uninstall.c index 104411ed2..1b04d1098 100644 --- a/lib/uninstall.c +++ b/lib/uninstall.c @@ -362,7 +362,7 @@ int runScript(char * prefix, Header h, int tag, int arg, int norunScripts) { execl("/bin/sh", "/bin/sh", "-x", "-s", upgradeArg, NULL); else execl("/bin/sh", "/bin/sh", "-s", upgradeArg, NULL); - exit(-1); + _exit(-1); } close(fd); waitpid(child, &status, 0); |