io_closeonexec(3diet)

io_closeonexec3diet

Mark a file descriptor non-inheritable

Usage

#include <io.h>

void io_closeonexec(int64 fd);

Overview

io_closeonexec marks a file descriptor non-inheritable. It will be automatically closed if the process executes a different one. The descriptor will not be automatically closed when you fork() a new child process, though.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.