diff options
author | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-29 17:16:20 +0000 |
---|---|---|
committer | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-29 17:16:20 +0000 |
commit | bada9b0ba2db5173cdb9b3bc507825a0deff2d80 (patch) | |
tree | ce02ccab8398db0bbabc6fe8051ea11cb4b99541 /src/c_fork.c | |
parent | Seems relatively fine to me (diff) | |
download | bsdsetsid-bada9b0ba2db5173cdb9b3bc507825a0deff2d80.tar.gz bsdsetsid-bada9b0ba2db5173cdb9b3bc507825a0deff2d80.tar.bz2 bsdsetsid-bada9b0ba2db5173cdb9b3bc507825a0deff2d80.tar.xz bsdsetsid-bada9b0ba2db5173cdb9b3bc507825a0deff2d80.tar.zst bsdsetsid-bada9b0ba2db5173cdb9b3bc507825a0deff2d80.zip |
Added man, Makefile can install
FossilOrigin-Name: 345456287af27b824c56e03b1eeebd9f73fe6562
Diffstat (limited to 'src/c_fork.c')
-rw-r--r-- | src/c_fork.c | 22 |
1 files changed, 4 insertions, 18 deletions
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); } |