From c61a030810b7d7c42d9da1e1c4ea88f6d0b0cabf Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 30 May 2009 13:03:37 +0000 Subject: [PATCH] fixed signal file handling --- door_daemon/door_daemon.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/door_daemon/door_daemon.c b/door_daemon/door_daemon.c index 00fbeb7..7348e1c 100644 --- a/door_daemon/door_daemon.c +++ b/door_daemon/door_daemon.c @@ -281,11 +281,13 @@ int main_loop(int door_fd, int cmd_listen_fd) if(!ret || ret == -1) continue; - if(signal_handle()) { - return_value = 1; - break; + if(FD_ISSET(sig_fd, &tmpfds)) { + if(signal_handle()) { + return_value = 1; + break; + } } - + if(FD_ISSET(door_fd, &tmpfds)) { return_value = nonblock_readline(door_buffer, door_fd, &cmd_q, client_lst, process_door); if(return_value) -- 1.7.10.4