From 0d8ce6f07519c55df6623c8ac2010ce078900b4d Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 11 Aug 2008 14:02:37 +0000 Subject: [PATCH] more fixup pthreads compile. git-svn-id: file:///svn/unbound/trunk@1184 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/daemon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 */ } }