On Nov 4 11:49, Tim Adye wrote: > 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.
Thanks for testing, Corinna -- Corinna Vinschen Cygwin Maintainer
signature.asc
Description: PGP signature