X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=server.c;h=0e256053e81f531a2cb178fd57f45ff935b437e6;hp=ba5dabde066050825a46ef3abae82556474e7226;hb=96dd1284a1b7d565560979fdc7ec647aeceb6b52;hpb=9bf4bc297a7cb88f4f886c6b8d600fd6c584139c diff --git a/server.c b/server.c index ba5dabde..0e256053 100644 --- a/server.c +++ b/server.c @@ -77,11 +77,11 @@ #include "string.h" #include "afs.h" #include "server.h" +#include "list.h" +#include "send.h" #include "vss.h" #include "config.h" #include "close_on_fork.h" -#include "list.h" -#include "send.h" #include "net.h" #include "daemon.h" #include "ipc.h" @@ -276,16 +276,13 @@ static void handle_sighup(void) kill(mmd->afs_pid, SIGHUP); } -static void signal_post_select(struct sched *s, struct task *t) +static void signal_post_select(struct sched *s, __a_unused struct task *t) { - struct signal_task *st = container_of(t, struct signal_task, task); - int signum; - - if (!FD_ISSET(st->fd, &s->rfds)) - return; + int signum = para_next_signal(&s->rfds); - signum = para_next_signal(); switch (signum) { + case 0: + return; case SIGHUP: handle_sighup(); break;