Skip to content

Commit

Permalink
Related to charybdis-ircd#291 - set FD_CLOEXEC on listener sockets, a…
Browse files Browse the repository at this point in the history
…s suggested by @aaronmdjones (unsure if the bug manifests on master because I wasn't able to compile the ircd)
  • Loading branch information
janicez committed Oct 12, 2019
1 parent ac0ae80 commit d60d4c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ircd/listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ inetport(struct Listener *listener)

listener->F = F;

fcntl (rb_get_fd(listener->F), F_SETFD, fcntl(rb_get_fd(listener->F), F_GETFD, 0) | FD_CLOEXEC);
rb_accept_tcp(listener->F, accept_precallback, accept_callback, listener);
return 1;
}
Expand Down

0 comments on commit d60d4c7

Please sign in to comment.