Postfix3.3.1
総合概要
データ構造
ファイル
ファイル一覧
大域各種
postfix-3.3.1
src
global
timed_ipc.c
[詳解]
1
/*++
2
/* NAME
3
/* timed_ipc 3
4
/* SUMMARY
5
/* enforce IPC timeout on stream
6
/* SYNOPSIS
7
/* #include <time_ipc.h>
8
/*
9
/* void timed_ipc_setup(stream)
10
/* VSTREAM *stream;
11
/* DESCRIPTION
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.
18
/* DIAGNOSTICS
19
/* Panic: sanity check failed. Fatal error: deadline exceeded.
20
/* LICENSE
21
/* .ad
22
/* .fi
23
/* The Secure Mailer license must be distributed with this software.
24
/* AUTHOR(S)
25
/* Wietse Venema
26
/* IBM T.J. Watson Research
27
/* P.O. Box 704
28
/* Yorktown Heights, NY 10598, USA
29
/*--*/
30
31
/* System library. */
32
33
#include <
sys_defs.h
>
34
35
/* Utility library. */
36
37
#include <
msg.h
>
38
#include <
vstream.h
>
39
40
/* Global library. */
41
42
#include "
mail_params.h
"
43
#include "
timed_ipc.h
"
44
45
/* timed_ipc_setup - enable ipc with timeout */
46
47
void
timed_ipc_setup
(
VSTREAM
*stream)
48
{
49
if
(
var_ipc_timeout
<= 0)
50
msg_panic
(
"timed_ipc_setup: bad ipc_timeout %d"
,
var_ipc_timeout
);
51
52
vstream_control
(stream,
53
CA_VSTREAM_CTL_TIMEOUT
(
var_ipc_timeout
),
54
CA_VSTREAM_CTL_END
);
55
}
var_ipc_timeout
int var_ipc_timeout
Definition:
mail_params.c:255
VSTREAM
Definition:
vstream.h:43
CA_VSTREAM_CTL_TIMEOUT
#define CA_VSTREAM_CTL_TIMEOUT(v)
Definition:
vstream.h:163
timed_ipc.h
msg_panic
NORETURN msg_panic(const char *fmt,...)
Definition:
msg.c:295
msg.h
sys_defs.h
timed_ipc_setup
void timed_ipc_setup(VSTREAM *stream)
Definition:
timed_ipc.c:47
vstream.h
mail_params.h
CA_VSTREAM_CTL_END
#define CA_VSTREAM_CTL_END
Definition:
vstream.h:155
vstream_control
void vstream_control(VSTREAM *stream, int name,...)
Definition:
vstream.c:1372
2018年11月10日(土) 18時59分39秒作成 - Postfix3.3.1 / 構成:
1.8.9.1