aboutsummaryrefslogtreecommitdiff
path: root/miscutils/taskset.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-25 01:46:53 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-25 01:46:53 +0200
commit41ddd9f60604cd994eeb37eb5708e9d3d5c8484b (patch)
treea2c7b5e6ea0d26715bac8c1f9f4b4e1fbad22534 /miscutils/taskset.c
parent2b46fd49b14b2ac30e0c767c65ac2b29f6922a45 (diff)
downloadbusybox-w32-41ddd9f60604cd994eeb37eb5708e9d3d5c8484b.tar.gz
busybox-w32-41ddd9f60604cd994eeb37eb5708e9d3d5c8484b.tar.bz2
busybox-w32-41ddd9f60604cd994eeb37eb5708e9d3d5c8484b.zip
*: make exec failure message more consistent
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/taskset.c')
-rw-r--r--miscutils/taskset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/taskset.c b/miscutils/taskset.c
index a0bbf0aa1..2891003df 100644
--- a/miscutils/taskset.c
+++ b/miscutils/taskset.c
@@ -129,9 +129,9 @@ int taskset_main(int argc UNUSED_PARAM, char **argv)
129 if (sched_setaffinity(pid, sizeof(mask), &mask)) 129 if (sched_setaffinity(pid, sizeof(mask), &mask))
130 bb_perror_msg_and_die("can't %cet pid %d's affinity", 's', pid); 130 bb_perror_msg_and_die("can't %cet pid %d's affinity", 's', pid);
131 131
132 if (!*argv) /* "-p <aff> <pid> [...ignored...]" */ 132 if (!argv[0]) /* "-p <aff> <pid> [...ignored...]" */
133 goto print_aff; /* print new affinity and exit */ 133 goto print_aff; /* print new affinity and exit */
134 134
135 BB_EXECVP(*argv, argv); 135 BB_EXECVP(argv[0], argv);
136 bb_simple_perror_msg_and_die(*argv); 136 bb_perror_msg_and_die("can't execute '%s'", argv[0]);
137} 137}