mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Merge topic 'ctest-jobserver-fifo-hang'
ff077af032 ctest: Set close-on-exec for jobserver FIFO
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9580
This commit is contained in:
@@ -306,6 +306,10 @@ void ImplPosix::ConnectFIFO(const char* path)
|
||||
if (fd < 0) {
|
||||
return;
|
||||
}
|
||||
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
||||
cm::uv_pipe_ptr connFIFO;
|
||||
connFIFO.init(this->Loop, 0, this);
|
||||
|
||||
Reference in New Issue
Block a user