[w32handle] Only own first handle if doing WaitHandle.WaitAny (#5625)mono-5.4.0.203
commit0dd35e9d6474922034489b23e6604c46605e119a
authorLudovic Henry <luhenry@microsoft.com>
Tue, 26 Sep 2017 03:05:58 +0000 (25 23:05 -0400)
committerMarek Safar <marek.safar@gmail.com>
Fri, 29 Sep 2017 09:21:47 +0000 (29 11:21 +0200)
tree6ffe2703e53de487cf3fda666bd252287fa6d784
parent7ba4e9e7b16b1855a072093fad2db0abf96bf16a
[w32handle] Only own first handle if doing WaitHandle.WaitAny (#5625)

This is the behaviour on .NET, even if it goes against the documentation at https://msdn.microsoft.com/en-us/library/tdykks7z(v=vs.110).aspx#Anchor_2

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59281
mono/metadata/w32handle.c
mono/tests/Makefile.am
mono/tests/bug-59281.cs [new file with mode: 0644]