=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/Attic/child.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/rsync/Attic/child.c 2019/02/18 21:34:54 1.6 --- src/usr.bin/rsync/Attic/child.c 2019/02/18 21:55:27 1.7 *************** *** 1,4 **** ! /* $Id: child.c,v 1.6 2019/02/18 21:34:54 benno Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * --- 1,4 ---- ! /* $Id: child.c,v 1.7 2019/02/18 21:55:27 benno Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * *************** *** 46,52 **** if ((args = fargs_cmdline(&sess, f)) == NULL) { ERRX1(&sess, "fargs_cmdline"); ! exit(EXIT_FAILURE); } for (i = 0; args[i] != NULL; i++) --- 46,52 ---- if ((args = fargs_cmdline(&sess, f)) == NULL) { ERRX1(&sess, "fargs_cmdline"); ! exit(1); } for (i = 0; args[i] != NULL; i++) *************** *** 56,65 **** if (dup2(fd, STDIN_FILENO) == -1) { ERR(&sess, "dup2"); ! exit(EXIT_FAILURE); } if (dup2(fd, STDOUT_FILENO) == -1) { ERR(&sess, "dup2"); ! exit(EXIT_FAILURE); } /* Here we go... */ --- 56,65 ---- if (dup2(fd, STDIN_FILENO) == -1) { ERR(&sess, "dup2"); ! exit(1); } if (dup2(fd, STDOUT_FILENO) == -1) { ERR(&sess, "dup2"); ! exit(1); } /* Here we go... */ *************** *** 67,72 **** execvp(args[0], args); ERR(&sess, "%s: execvp", args[0]); ! exit(EXIT_FAILURE); /* NOTREACHED */ } --- 67,72 ---- execvp(args[0], args); ERR(&sess, "%s: execvp", args[0]); ! exit(1); /* NOTREACHED */ }