diff options
author | Karel Zak | 2018-02-01 15:40:59 +0100 |
---|---|---|
committer | Karel Zak | 2018-02-01 15:40:59 +0100 |
commit | 61b6222269c2044bf04daed4424d52751c8ff023 (patch) | |
tree | 29385d210727ff0810425bd6944b8402362499eb /schedutils | |
parent | text-utils: use errexec() (diff) | |
download | kernel-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.c | 2 | ||||
-rw-r--r-- | schedutils/ionice.c | 2 | ||||
-rw-r--r-- | schedutils/taskset.c | 2 |
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; |