aboutsummaryrefslogtreecommitdiffstats
path: root/src/minilogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/minilogd.c')
-rw-r--r--src/minilogd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/minilogd.c b/src/minilogd.c
index b33b102a..b7cbc8c0 100644
--- a/src/minilogd.c
+++ b/src/minilogd.c
@@ -155,6 +155,7 @@ int main(int argc, char **argv) {
dup2(sock,0);
dup2(sock,1);
dup2(sock,2);
+ close(sock);
bzero(&addr, sizeof(addr));
addr.sun_family = AF_LOCAL;