From 3b0226a35e7c466b36374ccb75360d7e88fa7472 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 28 Apr 2010 23:02:17 +0100 Subject: [PATCH] fixes --- backends/innduct.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backends/innduct.c b/backends/innduct.c index 4d5e747..1a80ff3 100644 --- a/backends/innduct.c +++ b/backends/innduct.c @@ -2632,8 +2632,11 @@ static void *inndcomm_event(oop_source *lp, int fd, oop_event e, void *u) { assert(inndcomm_child); assert(fd == inndcomm_sentinel_fd); int status= xwaitpid(&inndcomm_child, "inndcomm"); + inndcomm_child= 0; + cancel_fd_read_except(fd); xclose_perhaps(&fd, "inndcomm sentinel pipe",0); + inndcomm_sentinel_fd= 0; assert(!flushing_input_file); @@ -3142,13 +3145,13 @@ int main(int argc, char **argv) { self_pid= getpid(); if (self_pid==-1) sysdie("getpid"); - if (!become_daemon) - control_stdio(); - statemc_lock(); notice("starting"); + if (!become_daemon) + control_stdio(); + control_init(); if (!filemon_method_init()) { -- 2.30.2