X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=udp_recv.c;h=6c5ee0261d78a6dbfb9c903e388c6d488b228694;hp=615553c586064ed39bfb29e31c3c8fff18faf852;hb=23b121a85984baa9252f4b4c0b8c4f186e394bb7;hpb=b66dfd41e268e64b65d2990bdec3d3a7e119e234 diff --git a/udp_recv.c b/udp_recv.c index 615553c5..6c5ee026 100644 --- a/udp_recv.c +++ b/udp_recv.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2012 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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;