aboutsummaryrefslogtreecommitdiff
path: root/bbot/machine.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/machine.cxx')
-rw-r--r--bbot/machine.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bbot/machine.cxx b/bbot/machine.cxx
index 94a81ab..8cad3f9 100644
--- a/bbot/machine.cxx
+++ b/bbot/machine.cxx
@@ -257,7 +257,7 @@ namespace bbot
addr.sun_family = AF_LOCAL;
strcpy (addr.sun_path, monitor.string ().c_str ()); // Size check in ctor
- auto_fd sock (socket (AF_LOCAL, SOCK_STREAM, 0));
+ auto_fd sock (socket (AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0));
if (sock.get () == -1)
throw_system_error (errno);