Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains FFI bindings to the C bits
Synopsis
- type Execve = ByteString -> [ByteString] -> Maybe [ByteString] -> [Fd] -> IO (Maybe CPid)
- execve :: Execve
- forkexecve :: Execve
Documentation
= 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 |
-> [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
.
forkexecve :: Execve Source #
Fork and execute a new process.