more fixup pthreads compile.

git-svn-id: file:///svn/unbound/trunk@1184 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-08-11 14:02:37 +00:00
parent 23ac4b02e3
commit 0d8ce6f075

View 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 */
}
}