ssh-agent doesn't die

Corinna Vinschen corinna-cygwin@cygwin.com
Sun Nov 3 19:01:00 GMT 2019


On Sep 27 00:42, 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.
> 
> 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
> [...]
> Once the sleep finishes, 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
> 
> ie. ssh-agent is still running, though its PPID no longer exists.

I pushed a patch and created new developer snapshots.  Please test the
latest from https://cygwin.com/snapshots/


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20191103/5bf9b4cf/attachment.sig>


More information about the Cygwin mailing list