ID EN
Socket

SOCK_CLOEXEC

Python 3.11

These two constants, if defined, can be combined with the socket types and allow you to set some flags atomically (thus avoiding possible race conditions and the need for separate calls).

Syntax

PYTHON
socket.SOCK_CLOEXEC

See Also

Availability