ssh-agent subprocess parentage

Ángel González keisial at
Tue May 10 08:14:23 EST 2011

Ángel González wrote:
> Daniel Kahn Gillmor wrote:
>> On 05/09/2011 01:29 PM, Ángel González wrote:
>>> Making the original ssh-agent a process group can probably avoid it, though:
>> which process (the parent or the child) would need to be its own process
>> group for this to work?  Would there be other side effects of doing this?
> The parent. The parent pid would then also be a process group id, and while
> there is a process belonging to it (in this case the child agent), it
> can't be reused.
> I think shelles usually do that already, but there are cases with side
> effects, although
> I doubt they are common.
> Note that my knowledge of process groups is very limited, though.

Actually, there is a non-portable way in Linux to get a when your parent
I had been looking for it in clone(2) from your previous mail, but it
lives at prctl(2)

I could look into using it under Linux if there's interest on it.

More information about the openssh-unix-dev mailing list