diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-06-24 17:55:36 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-06-24 17:55:36 +0400 |
commit | 5c04a3b81677258da055dd686a21faf2896fa145 (patch) | |
tree | 665266e16feae0d82961cdf096edd35ce40d894b | |
parent | bcf147f18f4370d061aff7890873aeed10542663 (diff) | |
download | rspamd-5c04a3b81677258da055dd686a21faf2896fa145.tar.gz rspamd-5c04a3b81677258da055dd686a21faf2896fa145.zip |
* Init perl XS correctly
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -158,7 +158,7 @@ main (int argc, char **argv) struct sockaddr_un *un_addr; FILE *f; pid_t wrk; - char *args[] = { "", NULL }; + char *args[] = { "", "-e", "0", NULL }; rspamd = (struct rspamd_main *)g_malloc (sizeof (struct rspamd_main)); bzero (rspamd, sizeof (struct rspamd_main)); @@ -241,7 +241,7 @@ main (int argc, char **argv) PERL_SET_CONTEXT (perl_interpreter); perl_construct (perl_interpreter); PL_exit_flags |= PERL_EXIT_DESTRUCT_END; - perl_parse (perl_interpreter, xs_init, 1, args, NULL); + perl_parse (perl_interpreter, xs_init, 3, args, NULL); /* Block signals to use sigsuspend in future */ sigprocmask(SIG_BLOCK, &signals.sa_mask, NULL); |