ssh-agent doesn't die
Tim Adye
T.J.Adye@rl.ac.uk
Mon Nov 4 11:49:00 GMT 2019
On 03/11/2019 19:00, Corinna Vinschen wrote:
> 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/
Hi Corinna,
That fixes the problem! With cygwin1-20191103.dll.xz installed as
/usr/bin/cygwin1.dll, all my ssh-agent processes exit properly.
> Thanks,
> Corinna
Thanks for the excellent fix,
Tim.
--
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