diff options
author | okan | 2018-01-08 16:21:54 +0000 |
---|---|---|
committer | okan | 2018-01-08 16:21:54 +0000 |
commit | 2f6dc5051a17cfb3ebcf0abe88c202a96cab8675 (patch) | |
tree | 21e7de1033118cbb4d358dcf67c6914c14043d3f /util.c | |
parent | ec8f2600eda19cbe97c55f5053713ff9691fbd02 (diff) | |
download | cwm-2f6dc5051a17cfb3ebcf0abe88c202a96cab8675.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: util.c,v 1.19 2017/12/29 20:09:19 okan Exp $ + * $OpenBSD: util.c,v 1.20 2018/01/08 16:21:54 okan Exp $ */ #include <sys/types.h> @@ -37,7 +37,7 @@ u_spawn(char *argstr) switch (fork()) { case 0: u_exec(argstr); - break; + exit(1); case -1: warn("fork"); default: |