nixd
Loading...
Searching...
No Matches
ForkPiped.h
Go to the documentation of this file.
1#pragma once
2
3namespace nixd {
4
5/// \brief fork this process and create some pipes connected to the new process.
6///
7/// stdin, stdout, stderr in the new process will be closed, and these fds could
8/// be used to communicate with it.
9///
10/// \returns pid of child process, in parent.
11/// \returns 0 in child.
12int forkPiped(int &In, int &Out, int &Err);
13
14} // namespace nixd
int forkPiped(int &In, int &Out, int &Err)
fork this process and create some pipes connected to the new process.
Definition ForkPiped.cpp:8