summaryrefslogtreecommitdiff
path: root/sys/kern/tty_nmea.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-02-12 14:41:24 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-02-12 14:41:24 +0000
commit57e23cc93e7bdf6acca7852d972f777f5687d506 (patch)
tree45a3d5dfc92a53d80df6b7048e1c7feb028c935d /sys/kern/tty_nmea.c
parent758e0bf6ad9d426618ee8dc337d2e53666f59022 (diff)
Do not reparent a traced child to ourself inside wait(2).
When a traced process _exit(2)s, its (tracing) parent tries to give it back to the old parent. In the case where the old parent is the same as the tracing parent, there's no need to do this dance, so simply remove it from the list of zombies and free its descriptors. Fix a double report via wait(2) exposed by recent changes in make and newly imported ptrace(2) regression from NetBSD. Diagnosed with espie@ and guenther@, ok claudio@
Diffstat (limited to 'sys/kern/tty_nmea.c')
0 files changed, 0 insertions, 0 deletions