Backport from mainline:
2005-02-07 Hans Boehm <Hans.Boehm@hp.com>
* pthread_stop_world.c (GC_stop_world): Handle EINTR from sem_wait.
From-SVN: r99439
+2005-05-08 Richard Henderson <rth@redhat.com>
+
+ Backport from mainline:
+ 2005-02-07 Hans Boehm <Hans.Boehm@hp.com>
+ * pthread_stop_world.c (GC_stop_world): Handle EINTR from sem_wait.
+
2005-04-17 David S. Miller <davem@davemloft.net>
* include/private/gcconfig.h (sparc-linux): Use LINUX_STACKBOTTOM.
}
}
for (i = 0; i < n_live_threads; i++) {
- if (0 != (code = sem_wait(&GC_suspend_ack_sem))) {
+ while (0 != (code = sem_wait(&GC_suspend_ack_sem))) {
+ if (errno != EINTR) {
GC_err_printf1("Sem_wait returned %ld\n", (unsigned long)code);
ABORT("sem_wait for handler failed");
+ }
}
}
# ifdef PARALLEL_MARK