summaryrefslogtreecommitdiff
path: root/chromium/sandbox/mac
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-01-29 16:35:13 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-01 15:33:35 +0000
commitc8c2d1901aec01e934adf561a9fdf0cc776cdef8 (patch)
tree9157c3d9815e5870799e070b113813bec53e0535 /chromium/sandbox/mac
parentabefd5095b41dac94ca451d784ab6e27372e981a (diff)
downloadqtwebengine-chromium-c8c2d1901aec01e934adf561a9fdf0cc776cdef8.tar.gz
BASELINE: Update Chromium to 64.0.3282.139
Change-Id: I1cae68fe9c94ff7608b26b8382fc19862cdb293a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/sandbox/mac')
-rw-r--r--chromium/sandbox/mac/seatbelt_exec.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/sandbox/mac/seatbelt_exec.cc b/chromium/sandbox/mac/seatbelt_exec.cc
index 52af21e1b29..53a5e7901ae 100644
--- a/chromium/sandbox/mac/seatbelt_exec.cc
+++ b/chromium/sandbox/mac/seatbelt_exec.cc
@@ -4,6 +4,7 @@
#include "sandbox/mac/seatbelt_exec.h"
+#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <sys/socket.h>
@@ -22,6 +23,13 @@ namespace sandbox {
SeatbeltExecClient::SeatbeltExecClient() {
if (pipe(pipe_) != 0)
logging::PFatal("SeatbeltExecClient: pipe failed");
+
+ int pipe_flags = fcntl(pipe_[1], F_GETFL);
+ if (pipe_flags == -1)
+ logging::PFatal("SeatbeltExecClient: fctnl(F_GETFL) failed");
+
+ if (fcntl(pipe_[1], F_SETFL, pipe_flags | O_NONBLOCK) == -1)
+ logging::PFatal("SeatbeltExecClient: fcntl(F_SETFL) failed");
}
SeatbeltExecClient::~SeatbeltExecClient() {