aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index b67b8cd7..7e3ca39b 100644
--- a/main.c
+++ b/main.c
@@ -146,7 +146,7 @@ void toy_init(struct toy_list *which, char *argv[])
void toy_exec_which(struct toy_list *which, char *argv[])
{
// Return if we can't find it (which includes no multiplexer case),
- if (!which) return;
+ if (!which || (which->flags&TOYFLAG_NOFORK)) return;
// Return if stack depth getting noticeable (proxy for leaked heap, etc).