The current jobserver_info relies on non-blocking FDs, thus one the pipe in such mode.
Tested locally for GCC LTO bootstrap that was stuck before the revision. I'm going to push the change. Martin gcc/ChangeLog: * opts-common.cc (jobserver_info::connect): Open fifo in non-blocking mode. --- gcc/opts-common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/opts-common.cc b/gcc/opts-common.cc index 5d79f174a38..4dec9f94447 100644 --- a/gcc/opts-common.cc +++ b/gcc/opts-common.cc @@ -2064,7 +2064,7 @@ void jobserver_info::connect () { if (!pipe_path.empty ()) - pipefd = open (pipe_path.c_str (), O_RDWR); + pipefd = open (pipe_path.c_str (), O_RDWR | O_NONBLOCK); } void -- 2.37.1