CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2020/03/16 05:58:46
Modified files: sys/kern : kern_exit.c kern_fork.c sys_process.c sys/sys : proc.h ptrace.h Log message: Keep track of traced child under a list of orphans while they are being reparented to a debugger process. Also re-parent exiting traced processes to their original parent, if it is still alive, after the debugger has seen the exit status. Logic comes from FreeBSD pointed out by guenther@. While here rename proc_reparent() into process_reparent() and get rid of superfluous checks. ok visa@