From e99f1d4683eb348d5b8174212f7738d76039b32a Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 8 Jan 2018 16:21:54 +0000 Subject: Quick fix: exit after a failed execvp in u_spawn instead; previously we did in u_exec, but the introduction of re-exec'ing the previous invocation of cwm if 'exec_wm' failed missed the 'exec' failing path. Will likely split out as a proper fix. Odd behaviour reported by Ve Telko. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index 450f97f..3c35f33 100644 --- a/util.c +++ b/util.c @@ -37,7 +37,7 @@ u_spawn(char *argstr) switch (fork()) { case 0: u_exec(argstr); - break; + exit(1); case -1: warn("fork"); default: -- cgit 1.4.1