]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/setpgid.c
Merge branch 'PR/libmount-exec-errors' of github.com:karelzak/util-linux-work
[thirdparty/util-linux.git] / sys-utils / setpgid.c
index d5806a49e8ba0b34f3e3abd2e08e4faee4760bb5..936991d65bbe86a49742136e072f1e78c7036c00 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * setpgid.c -- execute a command in a new process group
- * Daan De Meyer <daan.j.demeyer@gmail.com>
- * In the public domain.
+ * No copyright is claimed.  This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Daan De Meyer <daan.j.demeyer@gmail.com>
  */
-
 #include <getopt.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -26,9 +26,9 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(USAGE_OPTIONS, out);
        fputs(_(" -f, --foregound     Make a foreground process group\n"), out);
 
-       printf(USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
 
-       printf(USAGE_MAN_TAIL("setpgid(1)"));
+       fprintf(out, USAGE_MAN_TAIL("setpgid(1)"));
        exit(EXIT_SUCCESS);
 }