mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00

We cannot use blocking file-descriptor I/O on the I/O thread. This patch adds an assertion to UnixFdWatcher the tests for the O_NONBLOCK flag, when installing a file descriptor. In UnixFileWatcher, the Open method tests for the O_NONBLOCK flag for the opened file. File-descriptor flags for UnixSocketImpl et al are currently set by UnixSocketImpl itself. Later patches should move this into the methods of connector classes.