From bada9b0ba2db5173cdb9b3bc507825a0deff2d80 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Nov 2020 17:16:20 +0000 Subject: Added man, Makefile can install FossilOrigin-Name: 345456287af27b824c56e03b1eeebd9f73fe6562 --- src/c_fork.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'src/c_fork.c') diff --git a/src/c_fork.c b/src/c_fork.c index ee754ba..61a3016 100644 --- a/src/c_fork.c +++ b/src/c_fork.c @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * bsdsetsid: src/c_fork.c - * Fri Nov 27 01:48:00 CET 2020 + * Sun Nov 29 15:26:58 CET 2020 * Joe * * The program's main fork(2). @@ -121,22 +121,13 @@ c_fork_child u.pid = setsid(); if (u.pid == -1) { - dprintf( - STDERR_FILENO, - "%s: setsid: %s\n", - C_PROGNAME, - strerror(errno) - ); + dprintf(STDERR_FILENO, "%s: setsid: %s\n", C_PROGNAME, strerror(errno)); exit(EXIT_FAILURE); } path = mem; u.ret = c_get_path(argv[1 + wopt], envp, path); if (u.ret == 1) { - dprintf( - STDERR_FILENO, - "%s: PATH not set\n", - C_PROGNAME - ); + dprintf(STDERR_FILENO, "%s: PATH not set\n", C_PROGNAME); exit(EXIT_FAILURE); } else if (u.ret == 2) { @@ -191,12 +182,7 @@ c_fork_parent static void c_fork_error(void) { - dprintf( - STDERR_FILENO, - "%s: fork: %s\n", - C_PROGNAME, - strerror(errno) - ); + dprintf(STDERR_FILENO, "%s: fork: %s\n", C_PROGNAME, strerror(errno)); exit(EXIT_FAILURE); } -- cgit v1.2.3