aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 15:14:55 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 15:14:55 +0100
commit4bd848d1ceb686b30c9fddc939d31e435da3a05d (patch)
tree2a09daa4f03a7b871c01f57213aa18c0c4d5baff
parentwe do not need to be able to pass the file descriptor via well defined fd:s now that we can keep the socket when called daemonise (diff)
downloadsat-4bd848d1ceb686b30c9fddc939d31e435da3a05d.tar.gz
sat-4bd848d1ceb686b30c9fddc939d31e435da3a05d.tar.bz2
sat-4bd848d1ceb686b30c9fddc939d31e435da3a05d.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/satd.c b/src/satd.c
index df562ac..74b190f 100644
--- a/src/satd.c
+++ b/src/satd.c
@@ -203,7 +203,7 @@ main(int argc, char *argv[])
t (fd == -1);
if (fd != want) {
t (dup2(fd, want) == -1);
- close(fd);
+ close(fd), fd = -1;
}
}
}