handle EINTR for kevent calls
authorDaniel Becker <razzfazz@gmail.com>
Sat, 9 Jan 2016 19:46:25 +0000 (11:46 -0800)
committerDaniel Becker <razzfazz@gmail.com>
Sat, 9 Jan 2016 20:17:52 +0000 (12:17 -0800)
commit1b1f395bd45d7d595ba4f36676cca713859377a4
treef32423506a6c9821062de885b88ddfa2d601c1a1
parent96fb7a905d764d28c38863e7fe4d8a3ae1560cfb
handle EINTR for kevent calls

A kevent() syscall may "fail" with EINTR if the process receives
a signal before the timeout expires and before an event is placed
in the kqueue; in this case, rather than erroring out, the
syscall should simply be retried.
mcs/class/System/System.IO/KeventWatcher.cs