summaryrefslogtreecommitdiff
path: root/kike.c
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 /kike.c
parent1c9de9291bd535273af369f63c351da3f1469d50 (diff)
downloadxK-90842c23a29aea65aa29904bdd06c2b75d5cc9e3.tar.gz
xK-90842c23a29aea65aa29904bdd06c2b75d5cc9e3.tar.xz
xK-90842c23a29aea65aa29904bdd06c2b75d5cc9e3.zip
kike: fix daemonization on *BSD
Bump liberty.
Diffstat (limited to 'kike.c')
-rw-r--r--kike.c2
1 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