diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-17 19:31:48 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-17 19:31:48 +0400 |
commit | bca226772e9747a4587866a50122d4a8f7973b26 (patch) | |
tree | aae459617c9b3a7a82dd0b9e2a8b03be11e3ff52 /src/lmtp.c | |
parent | 453ecf68e3b51941944dbc3b1dece11342be3810 (diff) | |
download | rspamd-bca226772e9747a4587866a50122d4a8f7973b26.tar.gz rspamd-bca226772e9747a4587866a50122d4a8f7973b26.zip |
* Introduce new system of workers spawning and configuring, now rspamd can be easily extended by new types of wrokers
* Rework config system and avoid from using queue (3) lists
* Upgrade version to 0.2.0 as config format is now incompatible with older one
Diffstat (limited to 'src/lmtp.c')
-rw-r--r-- | src/lmtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lmtp.c b/src/lmtp.c index 5f2878a08..431083657 100644 --- a/src/lmtp.c +++ b/src/lmtp.c @@ -253,7 +253,7 @@ accept_socket (int fd, short what, void *arg) * Start lmtp worker process */ void -start_lmtp_worker (struct rspamd_worker *worker, int listen_sock) +start_lmtp_worker (struct rspamd_worker *worker) { struct sigaction signals; int i; @@ -273,7 +273,7 @@ start_lmtp_worker (struct rspamd_worker *worker, int listen_sock) signal_add (&worker->sig_ev, NULL); /* Accept event */ - event_set(&worker->bind_ev, listen_sock, EV_READ | EV_PERSIST, accept_socket, (void *)worker); + event_set(&worker->bind_ev, worker->cf->listen_sock, EV_READ | EV_PERSIST, accept_socket, (void *)worker); event_add(&worker->bind_ev, NULL); /* Perform modules configuring */ |