Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mono/metadata/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mono/metadata/process.c b/mono/metadata/process.c
index c59bee3f470..01a29bcd74a 100644
--- a/mono/metadata/process.c
+++ b/mono/metadata/process.c
@@ -65,7 +65,11 @@ void ves_icall_System_Diagnostics_Process_Process_free_internal (MonoObject *thi
g_message ("%s: Closing process %p, handle %p", __func__, this, process);
#endif
+#if TARGET_WIN32
+ CloseHandle (process);
+#else
CloseProcess (process);
+#endif
}
#define STASH_SYS_ASS(this) \