summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorKarel Zak2018-02-01 15:40:59 +0100
committerKarel Zak2018-02-01 15:40:59 +0100
commit61b6222269c2044bf04daed4424d52751c8ff023 (patch)
tree29385d210727ff0810425bd6944b8402362499eb /schedutils
parenttext-utils: use errexec() (diff)
downloadkernel-qcow2-util-linux-61b6222269c2044bf04daed4424d52751c8ff023.tar.gz
kernel-qcow2-util-linux-61b6222269c2044bf04daed4424d52751c8ff023.tar.xz
kernel-qcow2-util-linux-61b6222269c2044bf04daed4424d52751c8ff023.zip
schedutils: use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/chrt.c2
-rw-r--r--schedutils/ionice.c2
-rw-r--r--schedutils/taskset.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index a76987737..3d21c4387 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -553,7 +553,7 @@ int main(int argc, char **argv)
if (!ctl->pid) {
argv += optind + 1;
execvp(argv[0], argv);
- err(EXIT_FAILURE, _("failed to execute %s"), argv[0]);
+ errexec(argv[0]);
}
return EXIT_SUCCESS;
diff --git a/schedutils/ionice.c b/schedutils/ionice.c
index 671c245b8..b4c6a82a2 100644
--- a/schedutils/ionice.c
+++ b/schedutils/ionice.c
@@ -257,7 +257,7 @@ int main(int argc, char **argv)
*/
ioprio_setid(0, ioclass, data, IOPRIO_WHO_PROCESS);
execvp(argv[optind], &argv[optind]);
- err(EXIT_FAILURE, _("failed to execute %s"), argv[optind]);
+ errexec(argv[optind]);
} else {
warnx(_("bad usage"));
errtryhelp(EXIT_FAILURE);
diff --git a/schedutils/taskset.c b/schedutils/taskset.c
index 4d7fa1e91..fe79cd631 100644
--- a/schedutils/taskset.c
+++ b/schedutils/taskset.c
@@ -245,7 +245,7 @@ int main(int argc, char **argv)
if (!pid) {
argv += optind + 1;
execvp(argv[0], argv);
- err(EXIT_FAILURE, _("failed to execute %s"), argv[0]);
+ errexec(argv[0]);
}
return EXIT_SUCCESS;