diff options
Diffstat (limited to 'bbot/tftp.cxx')
-rw-r--r-- | bbot/tftp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bbot/tftp.cxx b/bbot/tftp.cxx index b47eef4..9c783c5 100644 --- a/bbot/tftp.cxx +++ b/bbot/tftp.cxx @@ -21,7 +21,7 @@ namespace bbot tftp_server:: tftp_server (const string& map) { - int fd (socket (AF_INET, SOCK_DGRAM, 0)); + int fd (socket (AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); if (fd == -1) throw_system_error (errno); |