diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:33:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:33:32 +0000 |
commit | 8bb05ac73a5b448b339ce0bc8d396c82c459b47f (patch) | |
tree | 1fdda006866bca20d41cb206767ea5241e36852f /sys-utils/setsid.c | |
parent | Adding debian version 2.39.3-11. (diff) | |
download | util-linux-8bb05ac73a5b448b339ce0bc8d396c82c459b47f.tar.xz util-linux-8bb05ac73a5b448b339ce0bc8d396c82c459b47f.zip |
Merging upstream version 2.40.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sys-utils/setsid.c')
-rw-r--r-- | sys-utils/setsid.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys-utils/setsid.c b/sys-utils/setsid.c index 5725e80..5ccfd0f 100644 --- a/sys-utils/setsid.c +++ b/sys-utils/setsid.c @@ -1,7 +1,10 @@ /* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + * + * Written by Rick Sladkey <jrs@world.std.com> + * * setsid.c -- execute a command in a new session - * Rick Sladkey <jrs@world.std.com> - * In the public domain. * * 1999-02-22 Arkadiusz MiĆkiewicz <misiek@pld.ORG.PL> * - added Native Language Support @@ -12,7 +15,6 @@ * 2008-08-20 Daniel Kahn Gillmor <dkg@fifthhorseman.net> * - if forked, wait on child process and emit its return code. */ - #include <getopt.h> #include <stdio.h> #include <stdlib.h> @@ -41,9 +43,9 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" -f, --fork always fork\n"), out); fputs(_(" -w, --wait wait program to exit, and use the same return\n"), out); - printf(USAGE_HELP_OPTIONS(16)); + fprintf(out, USAGE_HELP_OPTIONS(16)); - printf(USAGE_MAN_TAIL("setsid(1)")); + fprintf(out, USAGE_MAN_TAIL("setsid(1)")); exit(EXIT_SUCCESS); } |