summaryrefslogtreecommitdiff
path: root/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'idle.c')
-rw-r--r--idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/idle.c b/idle.c
index 03d9f88..46be539 100644
--- a/idle.c
+++ b/idle.c
@@ -357,7 +357,7 @@ again:
fprintf(stderr, "%s: attempting idle check on %s (len %u)\n",
scfg->name, idle->remotestr, idle->remote.addrlen);
- sfd = socket(idle->remote.storage.ss_family, SOCK_STREAM, 0);
+ sfd = socket(idle->remote.storage.ss_family, SOCK_STREAM | SOCK_CLOEXEC, 0);
if (sfd < 0) {
perror("socket");
goto again;