Class close_fds_if
boost::process::initializers::close_fds_if
Synopsis
Description
Closes all file descriptors a predicate returns true for.
This initializer doesn't close file descriptors immediately. Instead it sets the FD_CLOEXEC
flag. File descriptors are closed when execve
is called and the call succeeds.
POSIX only.
close_fds_if
public
construct/copy/destruct
-
explicit close_fds_if(const predicate_type & pred);
Constructor.
predicate_type
must be a function or functor with this signature: bool(int)