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

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



The quick summary is that we invoke git from a parallel invocation of
"make".  Git invokes ssh to pull stuff from a remote repo. Ssh sets
O_NONBLOCK on stdout and stderr if they do not refer to a tty. During
our build, stderr refers to a pipe that other jobs run by make (and
make itself) may also write to, and since this is a parallel build,
they may write to that pipe while ssh has it in non-blocking mode.

Make occasionally gets an unexpected EAGAIN error and fails the build
with the error message "make: write error".

We have a workaround, but it seems to me that this could cause
problems with other background uses of ssh too.  Should ssh really be
setting O_NONBLOCK if it is running non-interactively?

For more details, please see the thread on the git mailing list at
https://www.spinics.net/lists/git/msg365902.html.

Thanks,
Doug
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux