summaryrefslogtreecommitdiffhomepage
path: root/miscutils/timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/timeout.c')
-rw-r--r--miscutils/timeout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/timeout.c b/miscutils/timeout.c
index 273d26953..f6e655acc 100644
--- a/miscutils/timeout.c
+++ b/miscutils/timeout.c
@@ -110,6 +110,5 @@ int timeout_main(int argc UNUSED_PARAM, char **argv)
argv[0] = sv1;
argv[1] = sv2;
#endif
- BB_EXECVP(argv[0], argv);
- bb_perror_msg_and_die("can't execute '%s'", argv[0]);
+ BB_EXECVP_or_die(argv);
}