summaryrefslogtreecommitdiff
path: root/announce.c
diff options
context:
space:
mode:
Diffstat (limited to 'announce.c')
-rw-r--r--announce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/announce.c b/announce.c
index 3a50771..cc5d549 100644
--- a/announce.c
+++ b/announce.c
@@ -173,7 +173,7 @@ announce_init(struct cfg *cfg)
if (afd < 0)
perrordie("timerfd_create");
- sfd = socket(AF_INET, SOCK_DGRAM, 0);
+ sfd = socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sfd < 0)
perrordie("socket");