summaryrefslogtreecommitdiffstats
path: root/sys-utils/setsid.c
diff options
context:
space:
mode:
authorKarel Zak2012-03-20 09:28:38 +0100
committerKarel Zak2012-03-20 09:28:38 +0100
commit7c3c355faea24d066ac3d1d537739bdff14833b8 (patch)
tree0cf007c649c047cf3fe21f898dccd9c0c88a06a4 /sys-utils/setsid.c
parentsetsid: add option "-c" to set the controlling terminal (diff)
downloadkernel-qcow2-util-linux-7c3c355faea24d066ac3d1d537739bdff14833b8.tar.gz
kernel-qcow2-util-linux-7c3c355faea24d066ac3d1d537739bdff14833b8.tar.xz
kernel-qcow2-util-linux-7c3c355faea24d066ac3d1d537739bdff14833b8.zip
setsid: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/setsid.c')
-rw-r--r--sys-utils/setsid.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/sys-utils/setsid.c b/sys-utils/setsid.c
index d02879eff..132f4a2ab 100644
--- a/sys-utils/setsid.c
+++ b/sys-utils/setsid.c
@@ -22,15 +22,18 @@
static void __attribute__ ((__noreturn__)) usage(FILE * out)
{
- fprintf(out, USAGE_HEADER);
- fprintf(out, _(" %s [options] <program> [arguments ...]\n"),
- program_invocation_short_name);
- fprintf(out, USAGE_OPTIONS);
+ fputs(USAGE_HEADER, out);
fprintf(out, _(
- " -c, --ctty \tset the controlling terminal to the current one\n"
- ));
- fprintf(out, USAGE_HELP);
- fprintf(out, USAGE_VERSION);
+ " %s [options] <program> [arguments ...]\n"),
+ program_invocation_short_name);
+
+ fputs(USAGE_OPTIONS, out);
+ fputs(_(" -c, --ctty set the controlling terminal to the current one\n"),
+ out);
+
+ fputs(USAGE_HELP, out);
+ fputs(USAGE_VERSION, out);
+
fprintf(out, USAGE_MAN_TAIL("setsid(1)"));
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}