OpenGrok
Cross Reference: t_fork.c
xref
: /
src
/
tests
/
lib
/
libc
/
sys
/
t_fork.c
Home
|
History
|
Annotate
|
Download
|
only in
sys
History log of
/src/tests/lib/libc/sys/t_fork.c
Revision
Date
Author
Comments
1.5
24-May-2022
andvar
s/estabilishing/establishing/ in copy pasted comment.
1.4
06-Apr-2019
kamil
Add new tests in ATF t_fork/t_vfork
Verify whether nested fork(2)/vfork(2)/clone(2) calls are supported in a
fork(2)ed/vforked(2) child.
The interesting ones are non-forked parent and non-forked child scenarios,
in particular double vfork(2).
1.3
19-May-2018
kamil
branches: 1.3.2; 1.3.4;
Reflect reality in the comment
The watcher process is emitting SIGKILL, not SIGTERM.
Sponsored by <The NetBSD Foundation>
1.2
19-May-2018
kamil
Stop masking SIGSTOP in a vfork(2)ed child
Keep the traditional BSD behavior masking SIGTSTP, SIGTTIN and SIGTTOU in
a vfork(2)ed child before exec(3)/exit(3). This is useful in shells and
prevents deadlocking, when a parent cannot unstop the sleeping child.
Change the behavior for SIGSTOP. This signal is by design not maskable and
this property shall be obeyed without exceptions. The STOP behavior is
expected in the context of debuggers and useful in standalone programs.
It is still possible to stop a vfork(2)ed child, however it requires
proc.curproc.stopfork=1, but it is not a flexible solution.
FreeBSD and OpenBSD keep masking SIGSTOP in a vfork(2)ed child.
Linux does not mask stop signals in the same scenarios.
This fixes ATF test: t_vfork:raise2.
No known regressions reported in the existing ATF tests.
Discussed with <kre>
Sponsored by <The NetBSD Foundation>
1.1
18-May-2018
kamil
Add new ATF tests: t_fork and t_vfork
Test behavior of raise(signal) in either fork(2)ed or vfork(2)ed child.
Tests:
- raise1 SIGKILL
- raise2 SIGSTOP
- raise3 SIGTSTP
- raise4 SIGTTIN
- raise5 SIGTTOU
- raise6 SIGABRT
- raise7 SIGHUP
- raise8 SIGCONT
t_vfork:raise2 fails ignoring non-maskable SIGSTOP.
The remaining ones pass.
Sponsored by <The NetBSD Foundation>
1.3.4.1
10-Jun-2019
christos
Sync with HEAD
1.3.2.2
21-May-2018
pgoyette
Sync with HEAD
1.3.2.1
19-May-2018
pgoyette
file t_fork.c was added on branch pgoyette-compat on 2018-05-21 04:36:17 +0000
Indexes created Tue Sep 30 11:09:46 GMT 2025