ssh-agent doesn't die

Ken Brown kbrown@cornell.edu
Fri Sep 27 05:38:00 GMT 2019


On 9/26/2019 7:42 PM, Tim Adye wrote:
> Hi,
> 
> I have noticed a (new?) problem with using ssh-agent to start a session, eg. with
> 
>    ssh-agent xterm &
> 
> When the xterm (or whatever) command completes, the ssh-agent process is still 
> left running in the background. It should stop once its subprocess is done.

This does seem like a bug...

> As a simple test example, consider:
> 
> /bin/ssh-agent /bin/sleep 10
> 
> While the sleep is still running, ps shows:
> 
>        PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
>       1694    1693    1694       1576  ?          22534 00:01:10 /usr/bin/ssh-agent
>       1653       1    1653      11740  cons1      22534 00:00:37 /usr/bin/bash
>       1693    1653    1693       1552  cons1      22534 00:01:10 /usr/bin/sleep
> 
> One oddity is that ssh-agent is listed as a subprocess of sleep

...but this isn't a bug.  ssh-agent forks, and then the parent execs the command.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list