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