Fix a bit of return -1 / exit(-1) confusion.
1.1 --- a/rpm.c Sat Dec 29 15:56:59 2007 -0500
1.2 +++ b/rpm.c Sat Dec 29 16:43:34 2007 -0500
1.3 @@ -382,7 +382,7 @@
1.4 }
1.5 if (close(fd[0]) < 0 || close(fd[1]) < 0) {
1.6 fprintf(stderr, "failed to close pipe, %m\n");
1.7 - exit(-1);
1.8 + return -1;
1.9 }
1.10 if (chroot(installer->root) < 0) {
1.11 fprintf(stderr, "failed to chroot to %s, %m\n",
1.12 @@ -393,7 +393,7 @@
1.13 program, installer->root);
1.14 if (execl(program, program, NULL)) {
1.15 fprintf(stderr, "failed to exec %s, %m\n", program);
1.16 - return -1;
1.17 + exit(-1);
1.18 }
1.19 } else {
1.20 if (script && write(fd[1], script, strlen(script)) < 0) {