Source-Changes archive

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

CVS commit: src/regress/lib/libpthread/sigmask3



Module Name:    src
Committed By:   ad
Date:           Tue Dec 26 20:29:03 UTC 2006

Modified Files:
        src/regress/lib/libpthread/sigmask3: sigmask3.c

Log Message:
Signal masks are thread private, and there is no guarantee of the order in
which the two signal handlers in this test will execute, at least not beyond
SIGUSR1 being caught first, and SIGUSR2 being caught after that. One way
that it can fail erroneously is:

    2    kill(getpid(), SIGUSR1)
    2    Receive signal SIGUSR1
    2    kill(getpid(), SIGUSR2)
    1    Receive signal SIGUSR2
    1    Exit handler
    2    Exit handler

So if the handlers appear not to have run in sequence, at least verify
that they were run by different threads.


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/regress/lib/libpthread/sigmask3/sigmask3.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index