From: Wouter Wijngaards Date: Mon, 11 Aug 2008 14:02:37 +0000 (+0000) Subject: more fixup pthreads compile. X-Git-Tag: release-1.1.0~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d8ce6f07519c55df6623c8ac2010ce078900b4d;p=thirdparty%2Funbound.git more fixup pthreads compile. git-svn-id: file:///svn/unbound/trunk@1184 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/daemon.c b/daemon/daemon.c index 5109b3ed7..8ab594123 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -337,8 +337,7 @@ daemon_start_others(struct daemon* daemon) thread_start, daemon->workers[i]); #ifdef THREADS_DISABLED /* close pipe end of child */ - close(daemon->workers[i]->cmd_recv_fd); - daemon->workers[i]->cmd_recv_fd = -1; + tube_close_read(daemon->workers[i]->cmd); #endif /* no threads */ } }