summaryrefslogtreecommitdiffstats
path: root/schedutils/chrt.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:33:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:33:34 +0000
commit1272be04be0cb803eec87f602edb2e3e6f111aea (patch)
treebce17f6478cdd9f3c4ec3d751135dc42786d6a56 /schedutils/chrt.c
parentReleasing progress-linux version 2.39.3-11~progress7.99u1. (diff)
downloadutil-linux-1272be04be0cb803eec87f602edb2e3e6f111aea.tar.xz
util-linux-1272be04be0cb803eec87f602edb2e3e6f111aea.zip
Merging upstream version 2.40.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'schedutils/chrt.c')
-rw-r--r--schedutils/chrt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 250d878..d343cec 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -90,9 +90,9 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -v, --verbose display status information\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
- printf(USAGE_MAN_TAIL("chrt(1)"));
+ fprintf(out, USAGE_MAN_TAIL("chrt(1)"));
exit(EXIT_SUCCESS);
}
@@ -485,6 +485,8 @@ int main(int argc, char **argv)
if (!ctl->pid) {
argv += optind + 1;
+ if (strcmp(argv[0], "--") == 0)
+ argv++;
execvp(argv[0], argv);
errexec(argv[0]);
}