diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-11 16:11:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-11 16:11:51 +0200 |
commit | 50579107e3f628c2e3c644d5af01ef67404a0f2a (patch) | |
tree | df1c72b7bd6478a0676c573db9ef619e8610be4c /bbot/tftp.cxx | |
parent | f38fa3d9a5ee0ab92ac6c8b07b935724bbbcef1e (diff) |
Close sockets on exec
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); |