aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-03-13 16:44:58 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-03-13 16:44:58 +0100
commit90842c23a29aea65aa29904bdd06c2b75d5cc9e3 (patch)
treeffd6dc8590bcc3cfe8318f47b38b1c1612c6255e
parent1c9de9291bd535273af369f63c351da3f1469d50 (diff)
downloadxK-90842c23a29aea65aa29904bdd06c2b75d5cc9e3.tar.gz
xK-90842c23a29aea65aa29904bdd06c2b75d5cc9e3.tar.xz
xK-90842c23a29aea65aa29904bdd06c2b75d5cc9e3.zip
kike: fix daemonization on *BSD
Bump liberty.
-rw-r--r--kike.c2
m---------liberty0
2 files changed, 2 insertions, 0 deletions
diff --git a/kike.c b/kike.c
index 2f6523b..ce5bc1f 100644
--- a/kike.c
+++ b/kike.c
@@ -3988,6 +3988,8 @@ daemonize (struct server_context *ctx)
int tty = open ("/dev/null", O_RDWR);
if (tty != 0 || dup (0) != 1 || dup (0) != 2)
exit_fatal ("failed to reopen FD's: %s", strerror (errno));
+
+ poller_post_fork (&ctx->poller);
}
int
diff --git a/liberty b/liberty
-Subproject 9bff16f5ec777d3f4a9f7e8e8140907f3b404fa
+Subproject 365aed456e7ce31ba08e7d46bbb2402afc8256c