]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup compilation without pthreads.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 11 Aug 2008 13:58:33 +0000 (13:58 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 11 Aug 2008 13:58:33 +0000 (13:58 +0000)
git-svn-id: file:///svn/unbound/trunk@1183 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/daemon.c

index 00a32d3c506250790f3e176b5a649eaac7521d93..5109b3ed75c7dc4b022ecf79e181da3e34ffce66 100644 (file)
@@ -311,8 +311,7 @@ thread_start(void* arg)
        ub_thread_blocksigs();
 #ifdef THREADS_DISABLED
        /* close pipe ends used by main */
-       close(worker->cmd_send_fd);
-       worker->cmd_send_fd = -1;
+       tube_close_write(worker->cmd);
        close_other_pipes(worker->daemon, worker->thread_num);
 #endif
        if(!worker_init(worker, worker->daemon->cfg, worker->daemon->ports, 0))