mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-07 14:54:49 -04:00
udev_event_thread calls poll with two fds: the udev fd, and an eventfd used for shutdown. On FreeBSD we were hanging on shutdown in udev_monitor_receive_device after receiving the eventfd event. Now, if the udev fd reports no events skip the udev_monitor_receive_device call. At shutdown the loop will exit via os_event_try().