if (!(pid = fork())) {
execl(script->name, script->name, NULL);
rpmError(RPMERR_SCRIPT, "Exec failed");
- exit(RPMERR_SCRIPT);
+ _exit(RPMERR_SCRIPT);
}
wait(&status);
if (! WIFEXITED(status) || WEXITSTATUS(status)) {
if (prefix) {
if (chdir(prefix)) {
rpmError(RPMERR_EXEC, "Couldn't chdir to %s", prefix);
- exit(RPMERR_EXEC);
+ _exit(RPMERR_EXEC);
}
}
(tempdir) ? "-LH" : "-H",
"crc", NULL);
rpmError(RPMERR_EXEC, "Couldn't exec cpio");
- exit(RPMERR_EXEC);
+ _exit(RPMERR_EXEC);
}
if (cpioPID < 0) {
rpmError(RPMERR_FORK, "Couldn't fork cpio");
execlp("gzip", "gzip", "-c9fn", NULL);
rpmError(RPMERR_EXEC, "Couldn't exec gzip");
- exit(RPMERR_EXEC);
+ _exit(RPMERR_EXEC);
}
if (gzipPID < 0) {
rpmError(RPMERR_FORK, "Couldn't fork gzip");
execvp(argv[0], argv);
rpmError(RPMERR_EXEC, "Couldn't exec %s", argv[0]);
- exit(RPMERR_EXEC);
+ _exit(RPMERR_EXEC);
}
if (progPID < 0) {
rpmError(RPMERR_FORK, "Couldn't fork %s", argv[0]);
#include <unistd.h>
#include <string.h>
#include <errno.h>
+#include <sys/types.h>
#include "rpmlib.h"
#include "rpmlead.h"
name, "-sb", file, sigfile,
NULL);
rpmError(RPMERR_EXEC, "Couldn't exec pgp");
- exit(RPMERR_EXEC);
+ _exit(RPMERR_EXEC);
}
fpipe = fdopen(inpipe[1], "w");
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]);
name, "-sf",
NULL);
rpmError(RPMERR_EXEC, "Couldn't exec pgp");
- exit(RPMERR_EXEC);
+ _exit(RPMERR_EXEC);
}
fpipe = fdopen(passPhrasePipe[1], "w");
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);