aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/worker_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-25 14:14:09 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-25 14:14:09 +0000
commit840f144b9d399d69f06c921f23e36c13d0b498ff (patch)
treef8f3fda3f8a2178247b07b6f40afe91ea8fe3f2f /src/libserver/worker_util.c
parent64839a3bfb364431c1e5640d9e51f84607055d2a (diff)
downloadrspamd-840f144b9d399d69f06c921f23e36c13d0b498ff.tar.gz
rspamd-840f144b9d399d69f06c921f23e36c13d0b498ff.zip
Start work on worker->main pipe interface
Diffstat (limited to 'src/libserver/worker_util.c')
-rw-r--r--src/libserver/worker_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c
index f404a3295..4b24ee377 100644
--- a/src/libserver/worker_util.c
+++ b/src/libserver/worker_util.c
@@ -448,6 +448,11 @@ rspamd_fork_worker (struct rspamd_main *rspamd_main,
exit (-errno);
}
+ if (!rspamd_socketpair (cur->srv_pipe)) {
+ msg_err ("socketpair failure: %s", strerror (errno));
+ exit (-errno);
+ }
+
cur->srv = rspamd_main;
cur->type = cf->type;
cur->cf = g_malloc (sizeof (struct rspamd_worker_conf));