projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45239ca
)
sending status messages to all listeners
author
Christian Pointner
<equinox@realraum.at>
Tue, 12 May 2009 20:03:47 +0000
(20:03 +0000)
committer
Christian Pointner
<equinox@realraum.at>
Tue, 12 May 2009 20:03:47 +0000
(20: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
c917f3b
..
6f45140
100644
(file)
--- a/
door_daemon/door_daemon.c
+++ b/
door_daemon/door_daemon.c
@@
-227,9
+227,15
@@
int process_door(int door_fd, cmd_t **cmd_q, client_t* client_lst)
do {
if(!cmd_q || !(*cmd_q))
break;
- ret = send_response((*cmd_q)->fd, tok);
- if(ret < 0)
- return ret;
+
+ send_response((*cmd_q)->fd, tok);
+
+ if(!strncmp(tok, "Status:", 7)) {
+ client_t* client;
+ for(client = client_lst; client; client = client->next)
+ if(client->status_listener)
+ send_response(client->fd, tok);
+ }
cmd_pop(cmd_q);
} while(tok = strtok_r(NULL, "\n\r", &saveptr));