Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / master / master_flow.c
blob49578be21d62117ca0aa0e62359b044eb95059dc
1 /* $NetBSD$ */
3 /* System library. */
5 #include <sys_defs.h>
6 #include <unistd.h>
7 #include <stdlib.h>
9 /* Utility library. */
11 #include <msg.h>
12 #include <iostuff.h>
14 /* Application-specific. */
16 #include <master.h>
17 #include <master_proto.h>
19 int master_flow_pipe[2];
21 /* master_flow_init - initialize the flow control channel */
23 void master_flow_init(void)
25 const char *myname = "master_flow_init";
27 if (pipe(master_flow_pipe) < 0)
28 msg_fatal("%s: pipe: %m", myname);
30 non_blocking(master_flow_pipe[0], NON_BLOCKING);
31 non_blocking(master_flow_pipe[1], NON_BLOCKING);
33 close_on_exec(master_flow_pipe[0], CLOSE_ON_EXEC);
34 close_on_exec(master_flow_pipe[1], CLOSE_ON_EXEC);