Qsmtp
0.30dev
|
helper functions for interacting with Qsmtpds child processes More...
Functions | |
int | pipe_move (int p[2], int target) |
move the read end of the pipe to the target descriptor More... | |
helper functions for interacting with Qsmtpds child processes
int pipe_move | ( | int | p[2], |
int | target | ||
) |
move the read end of the pipe to the target descriptor
p | both ends of the pipe |
target | the target descriptor of the read end |
0 | everything is fine |
This will move the read end of the pipe to target, closing both the write end of the pipe and the old read end of the pipe. This is intended to be called in the child process directly after forking, but before execve().