summaryrefslogtreecommitdiff
path: root/usr.bin/lex
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2021-03-23 10:30:41 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2021-03-23 10:30:41 +0000
commit4c1d248d16915e972e7b863d8bc72c2d20d24fa8 (patch)
treecd19695ec0c337cca11c09d36f12bb6d96e2bf61 /usr.bin/lex
parenta04c027eec71104e37c2e945b7e3929766b72bf4 (diff)
Make a child execute fork_return() only if PTRACE_FORK has been specified.
fork_return() does an additional check to send a SIGTRAP (for a debugger) but this signal might overwrite the SIGSTOP generated by the parent doing a PT_ATTACH before the child has a change to execute any instruction. Prevent a race visible only on SP system with regress/sys/kern/ptrace2. ok kettenis@
Diffstat (limited to 'usr.bin/lex')
0 files changed, 0 insertions, 0 deletions