From d5680f026fb83c8ff73a404eeabcc28211c5708d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 7 Apr 2020 16:54:42 -0500 Subject: Don't let NOFORK arguments run through the multiplexer. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). -- cgit v1.2.3