From 1272be04be0cb803eec87f602edb2e3e6f111aea Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 21:33:34 +0200 Subject: Merging upstream version 2.40. Signed-off-by: Daniel Baumann --- sys-utils/setsid.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys-utils/setsid.c') 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 + * * setsid.c -- execute a command in a new session - * Rick Sladkey - * In the public domain. * * 1999-02-22 Arkadiusz Miƛkiewicz * - added Native Language Support @@ -12,7 +15,6 @@ * 2008-08-20 Daniel Kahn Gillmor * - if forked, wait on child process and emit its return code. */ - #include #include #include @@ -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); } -- cgit v1.2.3