[os-event] Make unix version alertable (#3909)
authorLudovic Henry <ludovic@xamarin.com>
Wed, 9 Nov 2016 12:50:12 +0000 (07:50 -0500)
committerGitHub <noreply@github.com>
Wed, 9 Nov 2016 12:50:12 +0000 (07:50 -0500)
commitf96f13505ae779628623a229e2cdd7542947f37c
treed0cda167ebf6fe0d102900b6610ba2bd3749b55a
parenta2841796961c233ca5ca634b03b1336ef4a251b5
[os-event] Make unix version alertable (#3909)

This fixes `appdomain_unload.exe` test timeout. The following would happen:
 - T1 unload the current domain
  - T1 launch T2 to unload domain
  - T1 waits on T2 to finish
 - T2 tries to abort T1 <-- because the wait on T2 is not alertable, T1 is not going to be aborted
mono/metadata/threads.c
mono/utils/os-event-unix.c