procex-0.3.0: Ergonomic process launching with extreme flexibility and speed
Safe HaskellSafe-Inferred
LanguageHaskell2010

Procex.Execve

Description

Contains FFI bindings to the C bits

Synopsis

Documentation

type Execve Source #

Arguments

 = ByteString

The full path to the executable.

-> [ByteString]

The args to pass, including argv[0].

-> Maybe [ByteString]

The environment to pass. Will default to the current environment if Nothing is passed.

-> [Fd]

The fds to pass. All other fds will be closed. In the new process, the integral id for each fd will be set to the position the fd has in this list, e.g. the first element in this list will be stdin, and so on.

-> IO (Maybe CPid)

The process id for the new process.

The signature for execve and forkexecve.

execve :: Execve Source #

Replace the current process with a new process.

forkexecve :: Execve Source #

Fork and execute a new process.