opnsense-src/tests/sys
Eric Badger b38bd91f4f don't stop in issignal() if P_SINGLE_EXIT is set
Suppose a traced process is stopped in ptracestop() due to receipt of a
SIGSTOP signal, and is awaiting orders from the tracing process on how
to handle the signal. Before sending any such orders, the tracing
process exits. This should kill the traced process. But suppose a second
thread handles the SIGKILL and proceeds to exit1(), calling
thread_single(). The first thread will now awaken and will have a chance
to check once more if it should go to sleep due to the SIGSTOP.  It must
not sleep after P_SINGLE_EXIT has been set; this would prevent the
SIGKILL from taking effect, leaving a stopped orphan behind after the
tracing process dies.

Also add new tests for this condition.

Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D9890
2017-03-07 13:41:01 +00:00
..
acl Expect 01:main to fail 2016-12-03 02:24:15 +00:00
aio Fix build of aio_test on MIPS, where the compiler warns about the local 2017-01-28 12:26:22 +00:00
fifo Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
file Remove unused vars to fix -Wunused issues 2017-01-14 04:10:04 +00:00
fs Use _SED instead of hacking tests rewriting mknod ... p as mkfifo 2017-01-16 17:53:58 +00:00
geom A forced commit to note other portion of the Makefile change accidentally 2017-02-19 22:00:11 +00:00
kern don't stop in issignal() if P_SINGLE_EXIT is set 2017-03-07 13:41:01 +00:00
kqueue Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00
mac Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:29:26 +00:00
mqueue Export the mq_getfd_np() symbol from librt.so, which allows to get 2016-10-02 17:02:59 +00:00
netinet Add an ATF test for IPv6 SLAAC with multiple fibs 2017-03-01 00:28:04 +00:00
opencrypto Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
pjdfstest Improve pjdfstest run instructions 2017-02-21 21:01:01 +00:00
posixshm Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
sys DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
vfs Mark testcases which use cap_enter as expected failures until the 2017-01-15 09:13:41 +00:00
vm Revert r313565 -- :mmap__bad_arguments passes again after r313655 2017-02-11 20:31:57 +00:00
Makefile Integrate contrib/netbsd-tests/fs/tmpfs into the FreeBSD test suite 2016-10-21 05:24:08 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Enable WARNS?= 6 across all of tests/sys 2017-01-14 04:20:06 +00:00