summary refs log tree commit diff
path: root/util.c
diff options
context:
space:
mode:
authorokan <okan>2018-01-08 16:21:54 +0000
committerokan <okan>2018-01-08 16:21:54 +0000
commite99f1d4683eb348d5b8174212f7738d76039b32a (patch)
tree0d64ebadb8f9a16ef03620b68f0ac39510a34413 /util.c
parent50c0a4eef624cf43a9c652f286e65b54b3ccde88 (diff)
downloadcwm-e99f1d4683eb348d5b8174212f7738d76039b32a.tar.gz
cwm-e99f1d4683eb348d5b8174212f7738d76039b32a.tar.xz
cwm-e99f1d4683eb348d5b8174212f7738d76039b32a.zip
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.
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
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: