diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 18:09:49 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 18:09:49 +0100 |
commit | 8cb223d2a21de67253cd56c7fd1e43bfb42966da (patch) | |
tree | 6a4725fcca03d1cd25eccf3cdce172e37ab87e61 | |
parent | m (diff) | |
download | sat-8cb223d2a21de67253cd56c7fd1e43bfb42966da.tar.gz sat-8cb223d2a21de67253cd56c7fd1e43bfb42966da.tar.bz2 sat-8cb223d2a21de67253cd56c7fd1e43bfb42966da.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/satd-diminished.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c index 4316e22..41cb54a 100644 --- a/src/satd-diminished.c +++ b/src/satd-diminished.c @@ -90,11 +90,12 @@ fork_again: case SAT_RUN: image = DAEMON_PREFIX "run"; break; default: fprintf(stderr, "%s: invalid command received.\n", argv[0]); - exit(1); + goto child_fail; } if (dup2(fd, SOCK_FILENO) != -1) close(fd), fd = SOCK_FILENO, execve(image, argv, envp); perror(argv[0]); + child_fail: close(fd); exit(1); default: |