Subject: CVS commit: src/regress/lib/libpthread/sigmask3
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 12/26/2006 20:29:03
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.