mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Patch from Shaun Jackman to save a few bytes.
This commit is contained in:
parent
0b1ff5a606
commit
47bc802e9e
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user