From: Christian Pointner Date: Sat, 30 May 2009 13:03:37 +0000 (+0000) Subject: fixed signal file handling X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=c61a030810b7d7c42d9da1e1c4ea88f6d0b0cabf;p=svn42.git fixed signal file handling --- 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)