diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-05-28 23:36:38 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-05-28 23:36:38 +0000 |
commit | f132923b980b5aae9519edc42a4362d2361fa1e4 (patch) | |
tree | 3ae9f0572425dd9e7d354862c0294002bbc9bc08 | |
parent | e5b6b0501db821e681027fa6ba63ec2647243e08 (diff) | |
download | busybox-w32-f132923b980b5aae9519edc42a4362d2361fa1e4.tar.gz busybox-w32-f132923b980b5aae9519edc42a4362d2361fa1e4.tar.bz2 busybox-w32-f132923b980b5aae9519edc42a4362d2361fa1e4.zip |
Patch from Shaun Jackman to save a few bytes.
git-svn-id: svn://busybox.net/trunk/busybox@10433 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | coreutils/watch.c | 7 |
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) | |||
100 | //child | 100 | //child |
101 | close(1); | 101 | close(1); |
102 | dup(old_stdout); | 102 | dup(old_stdout); |
103 | if (execvp(*watched_argv, watched_argv)) { | 103 | execvp(*watched_argv, watched_argv); |
104 | bb_error_msg_and_die("Couldn't run command\n"); | 104 | bb_perror_msg_and_die(*watched_argv); |
105 | } | ||
106 | } else { | 105 | } else { |
107 | bb_error_msg_and_die("Couldn't vfork\n"); | 106 | bb_perror_msg_and_die("vfork"); |
108 | } | 107 | } |
109 | } | 108 | } |
110 | } | 109 | } |