On 2026-08-31 04:49:52 +0200, Vincent Lefevre wrote:
> Now, let's test ssh:
> 
> $ sh -c "( true | ssh localhost true | cat; ./stdout-nonblock; ) 2>&1 | cat"
> Blocking
> 
> because ssh resets the fd file status flags to their default.

That's assuming that ssh doesn't get killed with SIGKILL.
Otherwise, one gets "Nonblocking".

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to