Merge pull request #2721 from ludovic-henry/fix-mono_ms_ticks
[mono.git] / mono / io-layer / processes.c
index 7e46c31ba3e1564a9323022f9a0e3542b5f71fca..913f0b8af4b43604a528192492512caff7fac786 100644 (file)
@@ -1287,7 +1287,8 @@ GetExitCodeProcess (gpointer process, guint32 *code)
                        *code = STILL_ACTIVE;
                        return TRUE;
                } else {
-                       return FALSE;
+                       *code = -1;
+                       return TRUE;
                }
        }
 
@@ -2726,8 +2727,7 @@ process_wait (gpointer handle, guint32 timeout, gboolean alertable)
        WapiHandle_process *process_handle;
        pid_t pid G_GNUC_UNUSED, ret;
        int status;
-       guint32 start;
-       guint32 now;
+       gint64 start, now;
        struct MonoProcess *mp;
 
        /* FIXME: We can now easily wait on processes that aren't our own children,