From 1fade40c18eea6175d7e9e66a7dfa808e549dc1c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Oct 2015 17:22:30 +0100 Subject: Update socketpair utility function. --- src/rspamd.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/rspamd.h') diff --git a/src/rspamd.h b/src/rspamd.h index 700d0a599..4e8201d83 100644 --- a/src/rspamd.h +++ b/src/rspamd.h @@ -43,14 +43,16 @@ * Worker process structure */ struct rspamd_worker { - pid_t pid; /**< pid of worker */ - guint index; /**< index number */ - struct rspamd_main *srv; /**< pointer to server structure */ - GQuark type; /**< process type */ - GHashTable *signal_events; /**< signal events */ - GList *accept_events; /**< socket events */ - struct rspamd_worker_conf *cf; /**< worker config data */ - gpointer ctx; /**< worker's specific data */ + pid_t pid; /**< pid of worker */ + guint index; /**< index number */ + struct rspamd_main *srv; /**< pointer to server structure */ + GQuark type; /**< process type */ + GHashTable *signal_events; /**< signal events */ + GList *accept_events; /**< socket events */ + struct rspamd_worker_conf *cf; /**< worker config data */ + gpointer ctx; /**< worker's specific data */ + gint control_pipe[2]; /**< control pipe. [0] is used by main process, + [1] is used by a worker */ }; struct rspamd_worker_signal_handler; -- cgit v1.2.3