[Bug 1630] sigtimedwait not following POSIX spec

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Jul 27 06:24:34 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1630

--- Comment #2 from Vinu Rajashekhar <vinutheraj at gmail.com> 2010-07-27 01:24:33 CDT ---
(In reply to comment #1)
> I am not sure which of the two patches breaks things but psx04 fails to run to
> completion.  Please try to address that before I merge these.
> 
The current error that you saw was because of the patch added to sigtimedwait.c
The patch is not at fault though. The problem is that when the thread is
waiting
in sigtimedwait, it has already set its _Per_CPU_Information.executing->Wait
information. When a signal is sent, that signal may have a signal handler which
may send the thread again into another thread queue, overwriting this
information.

So we have to save this information we have to save this information and
restore it.

Two other changes are required to run the test successfully though - one in the
test file itself and another in sigsuspend.c. They have been detailed here -
https://www.rtems.org/bugzilla/show_bug.cgi?id=1629

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list