Skip to content

Support FD_CLOEXEC for server and client sockets created by SocketServer - #604

Merged
bsergean merged 1 commit into
machinezone:masterfrom
zeek:topic/awelzel/set-close-on-exec-socket-server
Aug 17, 2026
Merged

Support FD_CLOEXEC for server and client sockets created by SocketServer#604
bsergean merged 1 commit into
machinezone:masterfrom
zeek:topic/awelzel/set-close-on-exec-socket-server

Conversation

@awelzel

@awelzel awelzel commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This adds a method setCloseOnExec() to enable setting FD_CLOEXEC on the server and client file descriptors before starting to listen or initiating the WebSocket handshake. This is useful if a process spawns child processes via system() or otherwise, but does not want have WebSocket specific sockets to be inherited to child processes.

This adds a method setCloseOnExec() to enable setting FD_CLOEXEC on the
server and client file descriptors before starting to listen or initiating
the WebSocket handshake. This is useful if a process spawns child processes
via system() or otherwise, but does not want have WebSocket specific
sockets to be inherited to child processes.
@awelzel
awelzel force-pushed the topic/awelzel/set-close-on-exec-socket-server branch from 4f7df1c to 52b9e87 Compare August 17, 2026 09:07
@bsergean
bsergean merged commit 58a9f98 into machinezone:master Aug 17, 2026
6 of 7 checks passed
@bsergean

Copy link
Copy Markdown
Collaborator

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants