Bug 3046 - ControlPersist with -v causes stderr to be left open until the master times out
Summary: ControlPersist with -v causes stderr to be left open until the master times out
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 7.9p1
Hardware: Other Linux
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-29 17:01 AEST by Johannes Berg
Modified: 2019-07-29 17:01 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.