Bug 3046

Summary: ControlPersist with -v causes stderr to be left open until the master times out
Product: Portable OpenSSH Reporter: Johannes Berg <johannes>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: normal    
Priority: P5    
Version: 7.9p1   
Hardware: Other   
OS: Linux   

Description Johannes Berg 2019-07-29 17:01:34 AEST
In similar fashion as bug #1988 but with -v, the stderr file descriptor is left open and a script reading from stderr will hang until the master times out, so I guess the FD should be closed when detaching.

It's a little unfortunate that this would make debugging a bit more difficult, but OTOH debugging would now get printed to an FD that shouldn't really have much relation to the control process. So it's better to debug the master with -y, in which case of course this cannot happen.