]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - dccp_recv.c
signal: Restore errno on exit from signal handler.
[paraslash.git] / dccp_recv.c
index ea6884b16a1ffcda3002eb6b6340b2cff257b7be..69bc186126c2447e5f5d68306a070bd0953a2b1d 100644 (file)
 #include "list.h"
 #include "sched.h"
 #include "ggo.h"
+#include "buffer_tree.h"
 #include "recv.h"
 #include "string.h"
 #include "net.h"
 #include "fd.h"
-#include "buffer_tree.h"
 
 #include "dccp_recv.cmdline.h"
 
@@ -132,6 +132,9 @@ static void dccp_recv_post_select(struct sched *s, struct task *t)
        int ret, iovcnt;
        size_t num_bytes;
 
+       ret = task_get_notification(t);
+       if (ret < 0)
+               goto out;
        ret = btr_node_status(btrn, 0, BTR_NT_ROOT);
        if (ret <= 0)
                goto out;