Merge pull request #2721 from ludovic-henry/fix-mono_ms_ticks
[mono.git] / mono / io-layer / processes.c
index 5a9e91b4831593d9eec1f00d6d7f1b39e9bac91b..913f0b8af4b43604a528192492512caff7fac786 100644 (file)
@@ -6,6 +6,7 @@
  *
  * (C) 2002-2011 Novell, Inc.
  * Copyright 2011 Xamarin Inc
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
  */
 
 #include <config.h>
@@ -1286,7 +1287,8 @@ GetExitCodeProcess (gpointer process, guint32 *code)
                        *code = STILL_ACTIVE;
                        return TRUE;
                } else {
-                       return FALSE;
+                       *code = -1;
+                       return TRUE;
                }
        }