Re: ssh-agent: flush stdout before main loop in foreground mode

2015-12-10 Thread Darren Tucker
On Wed, Dec 2, 2015 at 9:12 AM, Dustin Lundquist wrote: > When ssh-agent is run in foreground mode with -d and stdout is not a > terminal, the output including the path to the listening socket and > PID may not be written before the main loop begins. Since no further > output

ssh-agent: flush stdout before main loop in foreground mode

2015-12-01 Thread Dustin Lundquist
When ssh-agent is run in foreground mode with -d and stdout is not a terminal, the output including the path to the listening socket and PID may not be written before the main loop begins. Since no further output is written to stdout, this output may never be written. $ ssh-agent -d < /dev/null