aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-05-28 23:36:38 +0000
committerRob Landley <rob@landley.net>2005-05-28 23:36:38 +0000
commit47bc802e9e8942182cd3cec1b5a6c3fb62427d16 (patch)
tree3ae9f0572425dd9e7d354862c0294002bbc9bc08
parent0b1ff5a60630ebe957e3f28a3e17e28ec7b6fbe4 (diff)
downloadbusybox-47bc802e9e8942182cd3cec1b5a6c3fb62427d16.tar.gz
Patch from Shaun Jackman to save a few bytes.
-rw-r--r--coreutils/watch.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/watch.c b/coreutils/watch.c
index f9f40189e..8a6a019bc 100644
--- a/coreutils/watch.c
+++ b/coreutils/watch.c
@@ -100,11 +100,10 @@ extern int watch_main(int argc, char **argv)
//child
close(1);
dup(old_stdout);
- if (execvp(*watched_argv, watched_argv)) {
- bb_error_msg_and_die("Couldn't run command\n");
- }
+ execvp(*watched_argv, watched_argv);
+ bb_perror_msg_and_die(*watched_argv);
} else {
- bb_error_msg_and_die("Couldn't vfork\n");
+ bb_perror_msg_and_die("vfork");
}
}
}