From: Arnaud Giersch Date: Fri, 22 Sep 2017 16:37:07 +0000 (+0200) Subject: Set (accidentally removed) SOCK_CLOEXEC again. X-Git-Tag: v3_17~82 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/98cff65e9cd63d5efbbb10170dae58ff18ec6747 Set (accidentally removed) SOCK_CLOEXEC again. --- diff --git a/src/mc/Session.cpp b/src/mc/Session.cpp index 92b8d6376f..ce79e7c120 100644 --- a/src/mc/Session.cpp +++ b/src/mc/Session.cpp @@ -140,7 +140,7 @@ Session* Session::fork(std::function code) // process: int res; int sockets[2]; - res = socketpair(AF_LOCAL, SOCK_SEQPACKET, 0, sockets); + res = socketpair(AF_LOCAL, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sockets); if (res == -1) throw simgrid::xbt::errno_error("Could not create socketpair");