]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
more fixup pthreads compile.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 11 Aug 2008 14:02:37 +0000 (14:02 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 11 Aug 2008 14:02:37 +0000 (14:02 +0000)
git-svn-id: file:///svn/unbound/trunk@1184 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/daemon.c

index 5109b3ed75c7dc4b022ecf79e181da3e34ffce66..8ab59412385f38ea776933a3986488d1be76e219 100644 (file)
@@ -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 */
        }
 }