#ifdef HAVE_SEMAPHORE_H
#include <semaphore.h>
#endif
+#include <errno.h>
#include <mono/io-layer/processes.h>
if(exitstatus!=NULL) {
*exitstatus = thread->exitstatus;
}
+
+ _wapi_timed_thread_destroy (thread);
}
return(result);
}
exit (-1);
}
- MONO_SEM_WAIT (&thread->suspend_sem);
+ while (MONO_SEM_WAIT (&thread->suspend_sem) != 0 && errno == EINTR);
}
void _wapi_timed_thread_resume (TimedThread *thread)