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