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) ...@@ -280,6 +280,7 @@ static void *Run (void *data)
if (errno != EINTR) if (errno != EINTR)
break; break;
int canc = vlc_savecancel ();
struct udev_device *dev = udev_monitor_receive_device (mon); struct udev_device *dev = udev_monitor_receive_device (mon);
if (dev == NULL) if (dev == NULL)
continue; continue;
...@@ -295,6 +296,7 @@ static void *Run (void *data) ...@@ -295,6 +296,7 @@ static void *Run (void *data)
AddDevice (sd, dev); AddDevice (sd, dev);
} }
udev_device_unref (dev); udev_device_unref (dev);
vlc_restorecancel (canc);
} }
return NULL; 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