Sets the close‐on‐exec flag on a socket.

Synopsis

Declared in <folly/net/NetOps.h>

int
set_socket_close_on_exec(NetworkSocket s);

Return Value

0 on success, or ‐1 on error.

Parameters

Name

Description

s

The socket to modify.

Created with MrDocs