Source

netplug / netlink.c

Diff from to

File netlink.c

 }
 
 
-void
+int
 netlink_listen(int fd, netlink_callback callback, void *arg)
 {
     char   buf[8192];
         if (status == -1) {
             if (errno == EINTR)
                 continue;
+	    if (errno == EAGAIN)
+		return 1;
+
             do_log(LOG_ERR, "OVERRUN: %m");
             continue;
         }
 
                 if ((err = callback(hdr, arg)) == -1) {
                     do_log(LOG_ERR, "Callback failed");
-                    return;
+                    return 0;
                 }
             }