#include <mono/io-layer/process-private.h>
#include <mono/utils/mono-mutex.h>
+#include <mono/utils/mono-proclib.h>
#undef DEBUG_REFS
#if 0
wapi_processes_init ();
- /* Using g_atexit here instead of an explicit function call in
+ /* Using atexit here instead of an explicit function call in
* a cleanup routine lets us cope when a third-party library
* calls exit (eg if an X client loses the connection to its
* server.)
*/
- g_atexit (handle_cleanup);
+ mono_atexit (handle_cleanup);
}
void
void _wapi_handle_check_share (struct _WapiFileShare *share_info, int fd)
{
gboolean found = FALSE, proc_fds = FALSE;
- pid_t self = _wapi_getpid ();
- int pid;
int thr_ret, i;
/* Prevents entries from expiring under us if we remove this