1.1 --- a/librazor/rpm.c Fri Jun 20 14:18:52 2008 -0400
1.2 +++ b/librazor/rpm.c Fri Jun 20 22:27:07 2008 -0400
1.3 @@ -594,16 +594,16 @@
1.4 } else if (pid == 0) {
1.5 if (dup2(fd[0], STDIN_FILENO) < 0) {
1.6 fprintf(stderr, "failed redirect stdin, %m\n");
1.7 - return -1;
1.8 + exit(-1);
1.9 }
1.10 if (close(fd[0]) < 0 || close(fd[1]) < 0) {
1.11 fprintf(stderr, "failed to close pipe, %m\n");
1.12 - return -1;
1.13 + exit(-1);
1.14 }
1.15 if (chroot(installer->root) < 0) {
1.16 fprintf(stderr, "failed to chroot to %s, %m\n",
1.17 installer->root);
1.18 - return -1;
1.19 + exit(-1);
1.20 }
1.21 printf("executing program %s in chroot %s\n",
1.22 program, installer->root);