NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/39000: sigpending doen't modify its set argument

>Number:         39000
>Category:       lib
>Synopsis:       sigpending doen't modify its set argument
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 20 15:00:00 +0000 2008
>Originator:     BERTRAND Joël
>Release:        4.0
NetBSD riemann 4.0 NetBSD 4.0 (GENERIC.MP) #0: Sun Dec 16 02:23:20 PST 2007  
sigpending doesn't work. "set" argument is not modified when signal is caught.
Try to build a simple program with :

          while(sigismember(&set, SIGUSR1) == 0)
                if (sigpending(&set) != 0)

Run this code, and send SIGUSR1. 'set' variable is never modified.

Home | Main Index | Thread Index | Old Index