diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-25 15:16:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-25 15:16:04 +0000 |
commit | e0b4ba6307bcb324e380b4420f1a49bcc1ef764f (patch) | |
tree | dad7964b9f044bc7598fb6f9b9d4064308f50587 /src/libserver/rspamd_control.c | |
parent | 6141a5694842f6ba9588eae5cc7cddb10830b9e6 (diff) | |
download | rspamd-e0b4ba6307bcb324e380b4420f1a49bcc1ef764f.tar.gz rspamd-e0b4ba6307bcb324e380b4420f1a49bcc1ef764f.zip |
Implement listening for srv pipe in the main process
Diffstat (limited to 'src/libserver/rspamd_control.c')
-rw-r--r-- | src/libserver/rspamd_control.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c index 685ffabf8..10d853e9d 100644 --- a/src/libserver/rspamd_control.c +++ b/src/libserver/rspamd_control.c @@ -532,6 +532,7 @@ rspamd_srv_handler (gint fd, short what, gpointer ud) spair = g_hash_table_lookup (srv->spairs, cmd.cmd.spair.pair_id); if (spair == NULL) { spair = g_malloc (sizeof (gint) * 2); + if (rspamd_socketpair (spair) == -1) { rdata->rep.reply.spair.code = errno; msg_err ("cannot create socket pair: %s", strerror (errno)); |