From: Ian Jackson Date: Wed, 28 Apr 2010 22:02:17 +0000 (+0100) Subject: fixes X-Git-Tag: innduct-0.1~109 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=commitdiff_plain;h=3b0226a35e7c466b36374ccb75360d7e88fa7472 fixes --- 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()) {