+2010-04-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * threadpool.c: patch from Robert Nagy that fixes a nullref and
+ uses mono_sem_wait instead of mono_sem_timedwait for openbsd.
+
2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
* icall.c (ves_icall_type_is_assignable_from): Properly handle byref
for (i = 1; i < allocated; i++) {
pfd = &pfds [i];
- if (pfd->fd == -1 || pfd->fd == data->newpfd->fd)
+ if (pfd->fd == -1 || data->newpfd == NULL ||
+ pfd->fd == data->newpfd->fd)
break;
}
TP_DEBUG ("Waiting");
InterlockedIncrement (&tp->waiting);
- //while ((res = mono_sem_wait (&tp->new_job, TRUE)) == -1) {// && errno == EINTR) {
+#if defined(__OpenBSD__)
+ while ((res = mono_sem_wait (&tp->new_job, TRUE)) == -1) {// && errno == EINTR) {
+#else
while ((res = mono_sem_timedwait (&tp->new_job, 2000, TRUE)) == -1) {// && errno == EINTR) {
+#endif
if (mono_runtime_is_shutting_down ())
break;
if (THREAD_WANTS_A_BREAK (thread))