X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=netlink.c;fp=netlink.c;h=92eb44e23b819d27bb54eeedfe047a28bb306af0;hb=7bb43bd370e70385a4ccde06f3f4554f488aa6b3;hp=3bc7d0160baf1341e959adaee4ed441b98ac0b68;hpb=4ba1a4b0b4488e5058af67b789187735b529075e;p=catta diff --git a/netlink.c b/netlink.c index 3bc7d01..92eb44e 100644 --- a/netlink.c +++ b/netlink.c @@ -60,7 +60,7 @@ static gboolean check_func(GSource *source) { nl = *((flxNetlink**) (((guint8*) source) + sizeof(GSource))); g_assert(nl); - return nl->poll_fd.revents & G_IO_IN; + return nl->poll_fd.revents & (G_IO_IN|G_IO_HUP|G_IO_ERR); } static gboolean dispatch_func(GSource *source, GSourceFunc callback, gpointer user_data) {