[Bug 1630] New: sigtimedwait not following POSIX spec
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Mon Jul 26 12:04:59 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1630
Summary: sigtimedwait not following POSIX spec
Product: RTEMS
Version: HEAD
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: cpukit
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: vinutheraj at gmail.com
CC: vinutheraj at gmail.com
Created an attachment (id=913)
--> (https://www.rtems.org/bugzilla/attachment.cgi?id=913)
patch for sigtimedwait.c
sigtimedwait function implementation is not following the POSIX spec -
http://www.opengroup.org/onlinepubs/009695399/functions/sigwaitinfo.html.
Currently, sigtimedwait may be interrupted by a signal which is caught. The
spec says that sigtimedwait will return the signal number, if it is part of the
set given to it to check for signals. If it is not part of the set, it will
return -1 and set errno to EINTR.
This is not what the current implementation does. Currently, if it is
interrupted by any signal, that signal number is returned.
A patch is attached which remedies the file.
--
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