Re: [RESEND PATCH] prctl: add PR_[GS]ET_PDEATHSIG_PROC

Eric W. Biederman
2017-10-03T20:33:19Z

Linus Torvalds <torvalds@linux-foundation.org> writes:

> On Tue, Oct 3, 2017 at 12:30 PM, Eric W. Biederman
> <ebiederm@xmission.com> wrote:
>>
>> We never signal the orignal parent. We signal the child that
>> requested the pdeath_signal when the original parent dies.
>
> Yeah, I keep making that mistake, because I always confuse this with
> the exit_signal handling.
>
> Just mentally kick me next time I do that: "Christ, Linus, not
> *again*! Take your damn meds"
>
> Anyway, it's more the "another confusing and fragile special case that
> will probably not be used very widely and cause confusion because it
> lacks any test coverage" thing I worry about most.

Agreed. That makes a more general solution perferable.

Eric