# HG changeset patch # User Kristian H?gsberg # Date 1214015227 14400 # Node ID 3603b635d6c9a415d92f3328e79de1644e0d58ff # Parent 5cd6aa72bbd56bc2509823b260943c45cc5e2419 Call exit() instead of just returning if child fails. diff -r 5cd6aa72bbd5 -r 3603b635d6c9 librazor/rpm.c --- a/librazor/rpm.c Fri Jun 20 22:26:41 2008 -0400 +++ b/librazor/rpm.c Fri Jun 20 22:27:07 2008 -0400 @@ -594,16 +594,16 @@ } else if (pid == 0) { if (dup2(fd[0], STDIN_FILENO) < 0) { fprintf(stderr, "failed redirect stdin, %m\n"); - return -1; + exit(-1); } if (close(fd[0]) < 0 || close(fd[1]) < 0) { fprintf(stderr, "failed to close pipe, %m\n"); - return -1; + exit(-1); } if (chroot(installer->root) < 0) { fprintf(stderr, "failed to chroot to %s, %m\n", installer->root); - return -1; + exit(-1); } printf("executing program %s in chroot %s\n", program, installer->root);