From 3f1c2f89f6b8b8d23a9072f8549b0a2c1de06b03 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 16 Aug 2022 08:22:29 +0200 Subject: [PATCH] jobserver: fix fifo mode by opening pipe in proper mode The current jobserver_info relies on non-blocking FDs, thus one the pipe in such mode. 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.47.2