[process] Fix Process.Exited event triggered too early
commit8afaa90625e7eb4466467215ba7001f2eb7d1d1e
authorLudovic Henry <ludovic@xamarin.com>
Thu, 4 Aug 2016 10:30:35 +0000 (4 12:30 +0200)
committerLudovic Henry <ludovic@xamarin.com>
Thu, 4 Aug 2016 16:59:50 +0000 (4 18:59 +0200)
tree2cfc92ba4f411120d2ec9050a1f51ed9845588eb
parentd0fef1f2b4b00e7110d7f660499fd6ebc985a180
[process] Fix Process.Exited event triggered too early

The Process.Exited event would be triggered too early, leading to crash in code using this event to access the process exit code. This is because in Process.ExitCode, we first check that the process has really exited.
mcs/class/System/Test/System.Diagnostics/ProcessTest.cs
mono/io-layer/wait.c
mono/utils/w32handle.c