summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/unix/socket.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-02-12 14:41:23 +0000
committermpi <mpi@openbsd.org>2020-02-12 14:41:23 +0000
commit9ed4fc33668f362a29c07816cfdbcecba7c5fbd2 (patch)
tree72db515be4e6ab29bd6c95403363e26e20874b72 /usr.bin/dig/lib/isc/unix/socket.c
parentBring a few stragglers into line with the idiom used by the other 40+ (diff)
downloadwireguard-openbsd-9ed4fc33668f362a29c07816cfdbcecba7c5fbd2.tar.xz
wireguard-openbsd-9ed4fc33668f362a29c07816cfdbcecba7c5fbd2.zip
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 'usr.bin/dig/lib/isc/unix/socket.c')
0 files changed, 0 insertions, 0 deletions