7 /* enforce IPC timeout on stream
9 /* #include <time_ipc.h>
11 /* void timed_ipc_setup(stream)
14 /* timed_ipc() enforces on the specified stream the timeout as
15 /* specified via the \fIipc_timeout\fR configuration parameter:
16 /* a read or write operation fails if it does not succeed within
17 /* \fIipc_timeout\fR seconds. This deadline exists as a safety
18 /* measure for communication between mail subsystem programs,
19 /* and should never be exceeded.
21 /* Panic: sanity check failed. Fatal error: deadline exceeded.
25 /* The Secure Mailer license must be distributed with this software.
28 /* IBM T.J. Watson Research
30 /* Yorktown Heights, NY 10598, USA
37 /* Utility library. */
44 #include "mail_params.h"
45 #include "timed_ipc.h"
47 /* timed_ipc_setup - enable ipc with timeout */
49 void timed_ipc_setup(VSTREAM
*stream
)
51 if (var_ipc_timeout
<= 0)
52 msg_panic("timed_ipc_setup: bad ipc_timeout %d", var_ipc_timeout
);
54 vstream_control(stream
,
55 VSTREAM_CTL_TIMEOUT
, var_ipc_timeout
,