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-w32-47bc802e9e8942182cd3cec1b5a6c3fb62427d16.tar.gz
busybox-w32-47bc802e9e8942182cd3cec1b5a6c3fb62427d16.tar.bz2
busybox-w32-47bc802e9e8942182cd3cec1b5a6c3fb62427d16.zip
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)
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}