#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
+#include <signal.h>
#include <mono/io-layer/wapi.h>
#include <mono/io-layer/wapi-private.h>
process_info->dwProcessId=pid;
process_info->dwThreadId=tid;
/* Wait for possible execve failure */
- if (WaitForSingleObject (process_handle, 500) != WAIT_TIMEOUT) {
+ if (WaitForSingleObjectEx (process_handle, 500, FALSE) != WAIT_TIMEOUT) {
_wapi_lookup_handle (GUINT_TO_POINTER (process_handle),
WAPI_HANDLE_PROCESS,
(gpointer *) &process_handle_data,
}
}
+extern void _wapi_time_t_to_filetime (time_t timeval, WapiFileTime *filetime);
+
static void process_set_current (void)
{
struct _WapiHandle_process *process_handle;
process_handle->min_working_set=204800;
process_handle->max_working_set=1413120;
+ _wapi_time_t_to_filetime (time (NULL), &process_handle->create_time);
+
process_set_name (process_handle);
/* Make sure the new handle has a reference so it wont go away
{
struct _WapiHandle_process *process_handle;
gboolean ok;
- pid_t pid;
gint signo;
- gboolean ret;
gint err;
ok = _wapi_lookup_handle (process, WAPI_HANDLE_PROCESS,