This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1002143] sigwait does not wake up on blocked signals.


Please do not reply to this email, use the link below.

http://bugs.ecos.sourceware.org/show_bug.cgi?id=1002143

--- Comment #2 from Eric Hoffman <ehoffman@positronaccess.com> ---
Created attachment 2691
  --> http://bugs.ecos.sourceware.org/attachment.cgi?id=2691&action=edit
pthread fix for bug 1002142 and 1002143

I made a patch for bug 1002142 and 1002143.

Basically this create a new state variable that track when you do a
sigwait/sigtimedwait/sigwaitinfo.  When queuing a signal, it will wake the
target thread not only if the signal is unmasked, but also even if it's masked,
but the target thread is sleeping waiting for signals.

Also fix the EAGAIN and EINTR return codes for sigwait functions (POSIX
compliant).

And fixed the issue with crash when passing NULL info parameter to sigwaitinfo
and sigtimedwait.  POSIX do allow to pass NULL info parameter.

So this is open for review :-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]