Restoring block mode on exiting

David Newall openssh at davidnewall.com
Sun Apr 25 10:33:49 AEST 2021


Hi Dmitry,

On 24/4/21 12:41 am, Dmitry Belyavskiy wrote:
> Could you please take a look at the updated version of the patch?
> If I understand correctly, it provides the same blocking state after 
> closing
> the channel as it was before closing.

Yes, generally right, but, I feel you've assumed that the files are 
initially
blocking which is not necessarily so.

Also, the file is closed immediately after clearing blocking mode.  I think
it's worth a comment to say that the file being set to blocking mode is an
alias for stdin, out or err.



More information about the openssh-unix-dev mailing list