ssh-agent subprocess parentage
Ángel González
keisial at gmail.com
Tue May 10 08:51:28 EST 2011
Daniel Kahn Gillmor wrote:
> On 05/09/2011 06:14 PM, Ángel González wrote:
>> Actually, there is a non-portable way in Linux to get a when your parent
>> dies.
>> I had been looking for it in clone(2) from your previous mail, but it
>> actually
>> lives at prctl(2)
>> prctl(PR_SET_PDEATHSIG,)
>>
>> I could look into using it under Linux if there's interest on it.
> Ah, nice find! That would certainly help the concern that an ssh-agent
> process would linger on Linux (maybe similar approaches are available
> for other kernels?), but it doesn't resolve the process supervision
> concern, does it?
>
> --dkg
No. It only applies to the "lingering" case, where the parent id is
reused before
the agent notices with a long-lived process owned by the same user.
More information about the openssh-unix-dev
mailing list