2006-11-11 Miguel de Icaza <miguel@novell.com>
commit4bdddceac06e807210dc1010235436125c2b214a
authorMiguel de Icaza <miguel@gnome.org>
Sat, 11 Nov 2006 18:07:26 +0000 (11 18:07 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sat, 11 Nov 2006 18:07:26 +0000 (11 18:07 -0000)
tree5ca64323461e078685b598a76fea423aabe2e9e3
parentfce16b1ac4e81e85531be856bfbf053de6b3c772
2006-11-11  Miguel de Icaza  <miguel@novell.com>

* handles.c (CloseHandle): Cope here with the new value
INVALID_HANDLE_VALUE set on handles.

* processes.c (CreateProcess): Initialize the value of hThread to
be INVALID_HANDLE_VALUE on failure, not to be NULL.  Improvement
for #75733

2006-11-11  Miguel de Icaza  <miguel@novell.com>

* process.c
(ves_icall_System_Diagnostics_Process_CreateProcess_internal):
Only close the handle if the value of the handle is not
INVALID_HANDLE_VALUE.  This just makes the process a bit more
robust.

Improvement for #75733, so that we do not run into this problem.

svn path=/trunk/mono/; revision=67720
mono/io-layer/ChangeLog
mono/io-layer/handles.c
mono/io-layer/processes.c
mono/metadata/ChangeLog
mono/metadata/process.c