ssh-agent subprocess parentage
Phil Pennock
phil.pennock at globnix.org
Tue May 10 20:10:14 EST 2011
On 2011-05-09 at 17:13 -0400, Daniel Kahn Gillmor wrote:
> I'm pretty sure this is actually how it works. ssh-agent forks, and is
> two processes concurrently. Each process (the parent and the child)
> gets to decide what to do next. In ssh-agent, the parent process
> exec()'s the subcommand, while the child process lives on as an agent.
I misinterpreted which process you meant when you said parent. I
apologise.
Curiously, [gpg-agent --daemon cmd] does the exact same thing.
Safety measure so that if the agent dies you don't get left with a login
program reaping its child and resetting the tty while the shell is still
active? ssh to localhost, then run a second shell, in that kill -9
$PPID, see yourself disconnected while the shell you were typing into is
still running.
-Phil
More information about the openssh-unix-dev
mailing list