diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-25 14:14:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-25 14:14:09 +0000 |
commit | 840f144b9d399d69f06c921f23e36c13d0b498ff (patch) | |
tree | f8f3fda3f8a2178247b07b6f40afe91ea8fe3f2f /src/rspamd.h | |
parent | 64839a3bfb364431c1e5640d9e51f84607055d2a (diff) | |
download | rspamd-840f144b9d399d69f06c921f23e36c13d0b498ff.tar.gz rspamd-840f144b9d399d69f06c921f23e36c13d0b498ff.zip |
Start work on worker->main pipe interface
Diffstat (limited to 'src/rspamd.h')
-rw-r--r-- | src/rspamd.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rspamd.h b/src/rspamd.h index f10a8e90a..61ef25cd4 100644 --- a/src/rspamd.h +++ b/src/rspamd.h @@ -56,6 +56,9 @@ struct rspamd_worker { gpointer ctx; /**< worker's specific data */ gint control_pipe[2]; /**< control pipe. [0] is used by main process, [1] is used by a worker */ + gint srv_pipe[2]; /**< used by workers to request something from the + main process. [0] - main, [1] - worker */ + struct event srv_ev; /**< used by main for read workers' requests */ gpointer control_data; /**< used by control protocol to handle commands */ }; @@ -160,11 +163,11 @@ struct rspamd_main { /* Pid file structure */ rspamd_pidfh_t *pfh; /**< struct pidfh for pidfile */ GQuark type; /**< process type */ - guint ev_initialized; /**< is event system is initialized */ struct rspamd_stat *stat; /**< pointer to statistics */ - rspamd_mempool_t *server_pool; /**< server's memory pool */ + rspamd_mempool_t *server_pool; /**< server's memory pool */ GHashTable *workers; /**< workers pool indexed by pid */ + GHashTable *spairs; /**< socket pairs requested by workers */ rspamd_logger_t *logger; uid_t workers_uid; /**< worker's uid running to */ gid_t workers_gid; /**< worker's gid running to */ |