diff options
Diffstat (limited to 'bbot/agent.cxx')
-rw-r--r-- | bbot/agent.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bbot/agent.cxx b/bbot/agent.cxx index 8a47483..4d5cc4a 100644 --- a/bbot/agent.cxx +++ b/bbot/agent.cxx @@ -55,7 +55,7 @@ namespace bbot if (i.size () >= IFNAMSIZ) throw invalid_argument ("interface nama too long"); - auto_fd fd (socket (AF_INET, SOCK_DGRAM, 0)); + auto_fd fd (socket (AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); if (fd.get () == -1) throw_system_error (errno); |