From: Martin Liska Date: Tue, 16 Aug 2022 06:22:29 +0000 (+0200) Subject: jobserver: fix fifo mode by opening pipe in proper mode X-Git-Tag: basepoints/gcc-14~5144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f1c2f89f6b8b8d23a9072f8549b0a2c1de06b03;p=thirdparty%2Fgcc.git 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. --- 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