aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/vfork_daemon_rexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 546cc9e36..9d3cb9d54 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -176,6 +176,7 @@ int FAST_FUNC spawn_and_wait(char **argv)
/* child */
/* reset some state and run without execing */
+ GETOPT_RESET();
/* msg_eol = "\n"; - no caller needs this reinited yet */
logmode = LOGMODE_STDIO;