X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=udp_recv.c;h=ec188b5e165a0cdb57d5a8aed009286ea1ec532f;hb=1157d98d10d047c3fd8d2361e05650398ae11f59;hp=615553c586064ed39bfb29e31c3c8fff18faf852;hpb=4ac3134c050ba28b57e0ae9686eb1f6d83e6d586;p=paraslash.git diff --git a/udp_recv.c b/udp_recv.c index 615553c5..ec188b5e 100644 --- a/udp_recv.c +++ b/udp_recv.c @@ -15,12 +15,12 @@ #include "list.h" #include "sched.h" #include "ggo.h" +#include "buffer_tree.h" #include "recv.h" #include "udp_recv.cmdline.h" #include "string.h" #include "net.h" #include "fd.h" -#include "buffer_tree.h" static void udp_recv_pre_select(struct sched *s, struct task *t) { @@ -57,7 +57,9 @@ static void udp_recv_post_select(__a_unused struct sched *s, struct task *t) struct iovec iov[2]; int ret, readv_ret, iovcnt; - t->error = 0; + ret = task_get_notification(t); + if (ret < 0) + goto out; ret = btr_node_status(btrn, 0, BTR_NT_ROOT); if (ret <= 0) goto out;