From 1c31e9e82b12bdceeec4f8e07955984e20ee6b7e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 28 Nov 2010 04:34:09 +0100 Subject: use BB_EXECVP_or_die where appropriate Signed-off-by: Denys Vlasenko --- init/bootchartd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'init/bootchartd.c') diff --git a/init/bootchartd.c b/init/bootchartd.c index 5a1b3e8e8..ac3f261c8 100644 --- a/init/bootchartd.c +++ b/init/bootchartd.c @@ -441,8 +441,7 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv) pid_t pid = xvfork(); if (pid == 0) { /* child */ argv += 2; - execvp(argv[0], argv); - bb_perror_msg_and_die("can't execute '%s'", argv[0]); + BB_EXECVP_or_die(argv); } /* parent */ waitpid(pid, NULL, 0); -- cgit v1.2.3