aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-diminished.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-31 03:31:06 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-31 03:31:06 +0100
commit5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599 (patch)
treebd3729623e8600d53cc366f41e61b0b21e73a1b2 /src/satd-diminished.c
parentsome improvements and fixes (diff)
downloadsat-5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599.tar.gz
sat-5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599.tar.bz2
sat-5c6f9566ec7f8f0a0066cf423d63a7bdc0d7e599.tar.xz
fix bugs and improve debugging
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satd-diminished.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c
index 5316398..f0df567 100644
--- a/src/satd-diminished.c
+++ b/src/satd-diminished.c
@@ -113,10 +113,10 @@ fork_again:
goto child_fail;
}
if (command < 0) {
- close(SOCK_FILENO);
+ close(SOCK_FILENO), close(LOCK_FILENO);
execve(image, argv, envp);
} else {
- close(BOOT_FILENO), close(REAL_FILENO);
+ close(BOOT_FILENO), close(REAL_FILENO), close(LOCK_FILENO);
if (dup2(fd, SOCK_FILENO) != -1)
close(fd), fd = SOCK_FILENO, execve(image, argv, envp);
}