ssh client is setting O_NONBLOCK on a pipe shared with other processes

Damien Miller djm at
Mon Sep 16 14:19:58 AEST 2019

On Sun, 15 Sep 2019, Doug Graham wrote:

> > In any case, disabling nonblock for non-ttys is not what we want to do
> Ok, well I don't know what the solution is then. 

you can probably work around it by wrapping your ssh-executing make
commands in a go-between process, e.g.

git [whatever] 2>&1 | cat

This way, the cat process will be owning the stdout file descriptor and
will (presumably) keep it in blocking mode.


More information about the openssh-unix-dev mailing list