Commit da8ac562 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

udev: preempt cancellation

parent 64f7e765
......@@ -280,6 +280,7 @@ static void *Run (void *data)
if (errno != EINTR)
break;
int canc = vlc_savecancel ();
struct udev_device *dev = udev_monitor_receive_device (mon);
if (dev == NULL)
continue;
......@@ -295,6 +296,7 @@ static void *Run (void *data)
AddDevice (sd, dev);
}
udev_device_unref (dev);
vlc_restorecancel (canc);
}
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment