summaryrefslogtreecommitdiffstats
path: root/agent/call-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/call-daemon.c')
-rw-r--r--agent/call-daemon.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/agent/call-daemon.c b/agent/call-daemon.c
index f907f40eb..0c3605274 100644
--- a/agent/call-daemon.c
+++ b/agent/call-daemon.c
@@ -414,11 +414,7 @@ daemon_start (enum daemon_type type, ctrl_t ctrl)
i=0;
if (!opt.running_detached)
- {
- if (log_get_fd () != -1)
- no_close_list[i++] = assuan_fd_from_posix_fd (log_get_fd ());
- no_close_list[i++] = assuan_fd_from_posix_fd (fileno (stderr));
- }
+ no_close_list[i++] = assuan_fd_from_posix_fd (fileno (stderr));
no_close_list[i] = ASSUAN_INVALID_FD;
/* Connect to the daemon and perform initial handshaking. Use