summaryrefslogtreecommitdiffstats
path: root/sys-utils/renice.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:33:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:33:32 +0000
commit8bb05ac73a5b448b339ce0bc8d396c82c459b47f (patch)
tree1fdda006866bca20d41cb206767ea5241e36852f /sys-utils/renice.c
parentAdding debian version 2.39.3-11. (diff)
downloadutil-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/renice.c')
-rw-r--r--sys-utils/renice.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-utils/renice.c b/sys-utils/renice.c
index c4e1537..a8cf741 100644
--- a/sys-utils/renice.c
+++ b/sys-utils/renice.c
@@ -1,4 +1,6 @@
/*
+ * SPDX-License-Identifier: BSD-4-Clause-UC
+ *
* Copyright (c) 1983, 1989, 1993
* The Regents of the University of California. All rights reserved.
*
@@ -78,8 +80,8 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -g, --pgrp interpret arguments as process group ID\n"), out);
fputs(_(" -u, --user interpret arguments as username or user ID\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
- printf(USAGE_MAN_TAIL("renice(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_MAN_TAIL("renice(1)"));
exit(EXIT_SUCCESS);
}
@@ -100,7 +102,7 @@ static int donice(const int which, const int who, const int prio, const int rela
if (getprio(which, who, &oldprio) != 0)
return 1;
-
+
newprio = prio; // if not relative, set absolute priority
if (relative)