aboutsummaryrefslogtreecommitdiff
path: root/lib/xwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xwrap.c')
-rw-r--r--lib/xwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index d5ec9f64..3e0f57e4 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -191,7 +191,7 @@ void xexec(char **argv)
perror_msg("exec %s", argv[0]);
toys.exitval = 127;
- if (!CFG_TOYBOX_FORK) _exit(toys.exitval);
+ if (!toys.stacktop) _exit(toys.exitval);
xexit();
}