[pushed] jobserver: fix fifo mode by opening pipe in proper mode
Commit Message
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(-)
@@ -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