diff options
Diffstat (limited to 'miscutils/taskset.c')
-rw-r--r-- | miscutils/taskset.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/miscutils/taskset.c b/miscutils/taskset.c index a0bbf0aa1..08198d5d4 100644 --- a/miscutils/taskset.c +++ b/miscutils/taskset.c | |||
@@ -129,9 +129,8 @@ 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_or_die(argv); |
136 | bb_simple_perror_msg_and_die(*argv); | ||
137 | } | 136 | } |