diff options
Diffstat (limited to 'src/rspamd.h')
-rw-r--r-- | src/rspamd.h | 18 |
1 files changed, 10 insertions, 8 deletions
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; |