diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-16 19:50:18 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-02-16 19:50:18 +0300 |
commit | 0fd2682e113c400af6c43da72543bd75448e5be8 (patch) | |
tree | 9466f2887983571a85f05f1865e9b4990018764e /src/main.c | |
parent | f2774fb0fa223c998492e69d67f1cd3137c30ec6 (diff) | |
download | rspamd-0fd2682e113c400af6c43da72543bd75448e5be8.tar.gz rspamd-0fd2682e113c400af6c43da72543bd75448e5be8.zip |
* Prepare to migrate to cmake (still need to write install target and working with XS implicitly)
* Move all system includes to one file where we detect availability of all that includes
* Fix license misprint
* Fix some issues with perl initializing
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/main.c b/src/main.c index 9def8513e..1a142c9f5 100644 --- a/src/main.c +++ b/src/main.c @@ -13,7 +13,7 @@ * THIS SOFTWARE IS PROVIDED BY Rambler media ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY + * DISCLAIMED. IN NO EVENT SHALL Rambler BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND @@ -22,24 +22,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#include <sys/types.h> -#include <sys/time.h> -#include <sys/wait.h> -#include <sys/param.h> - -#include <unistd.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <time.h> -#include <errno.h> -#include <signal.h> -#ifdef HAVE_LIBUTIL_H -#include <libutil.h> -#endif -#include <syslog.h> - +#include "config.h" #include "main.h" #include "cfg_file.h" #include "util.h" @@ -324,7 +307,6 @@ main (int argc, char **argv, char **env) PERL_SET_CONTEXT (perl_interpreter); perl_construct (perl_interpreter); - PL_exit_flags |= PERL_EXIT_DESTRUCT_END; perl_parse (perl_interpreter, xs_init, 3, args, NULL); /* Block signals to use sigsuspend in future */ sigprocmask(SIG_BLOCK, &signals.sa_mask, NULL); |