NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/52117: ptrace(2) PTRACE_FORK fails on some platforms
The following reply was made to PR kern/52117; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/52117: ptrace(2) PTRACE_FORK fails on some platforms
Date: Tue, 28 Mar 2017 18:10:16 +0200
Unfortunately it does not work...
kpsignal2() ignores attempts to send signals before we are actually
running in the new context:
/*
* If the process is being created by fork, is a zombie or is
* exiting, then just drop the signal here and bail out.
*/
if (p->p_stat != SACTIVE && p->p_stat != SSTOP)
return 0;
so we can not do the handling earlier, w/o duplicating some of the signal
handling stuff, which we likely do not want to do.
Anyone got better ideas than copying the x86 code over to all child_return
implementations?
Martin
Home |
Main Index |
Thread Index |
Old Index