aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 17:22:30 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 17:22:30 +0100
commit1fade40c18eea6175d7e9e66a7dfa808e549dc1c (patch)
tree4be41814fc119d4741ce11140dd890ac3ea3a871 /src/rspamd.h
parent694ef3873dece023fe1550d34e36a10b3167415c (diff)
downloadrspamd-1fade40c18eea6175d7e9e66a7dfa808e549dc1c.tar.gz
rspamd-1fade40c18eea6175d7e9e66a7dfa808e549dc1c.zip
Update socketpair utility function.
Diffstat (limited to 'src/rspamd.h')
-rw-r--r--src/rspamd.h18
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;