My recent changes to PosixProcess cause it to fail when GC happens while
a Process is executing.
On a glibc-2.2.5/linuxthreads system the symptoms are that all threads
are frozen in GC until the Process terminates.
On my Fedora Core 1 NPTL system, GC seems to work, but the process
reaper thread gets killed causing other types of bad behavior.
The attach patch seems to fix the problmes.
Tested with make check in libjava with no regressions on:
i686-pc-linux-gnu (Fedora Core 1 NPTL) and mipsel-linux-gnu (glibc
2.2.5) with no regressions.
OK to commit?
David Daney
------------------------------------------------------------------------
2004-08-17 David Daney <ddaney@avtrex.com>
* java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend
instead of sigwait.