projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff3d6b1
)
fixed signal file handling
author
Christian Pointner
<equinox@realraum.at>
Sat, 30 May 2009 13:03:37 +0000
(13:03 +0000)
committer
Christian Pointner
<equinox@realraum.at>
Sat, 30 May 2009 13:03:37 +0000
(13:03 +0000)
door_daemon/door_daemon.c
patch
|
blob
|
history
diff --git
a/door_daemon/door_daemon.c
b/door_daemon/door_daemon.c
index
00fbeb7
..
7348e1c
100644
(file)
--- 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)