diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-06-10 17:41:41 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-06-10 17:41:41 +0400 |
commit | 25395e554edc13f457e48d5fdf69095b3dbe5e17 (patch) | |
tree | e8715de6b909d4b0c7d0f5dcf8122582a6511902 /main.c | |
parent | 2564777f536f6fde73ddaf24eaf4697775970e13 (diff) | |
download | rspamd-25395e554edc13f457e48d5fdf69095b3dbe5e17.tar.gz rspamd-25395e554edc13f457e48d5fdf69095b3dbe5e17.zip |
* Remove warning from main.c
* Add perl detection and perl linker's and cflags
* Modify configure to work with BSD sed (stupid and ugly)
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -128,6 +128,7 @@ main (int argc, char **argv) struct rspamd_worker *cur, *cur_tmp, *active_worker; struct sockaddr_un *un_addr; FILE *f; + pid_t wrk; rspamd = (struct rspamd_main *)malloc (sizeof (struct rspamd_main)); bzero (rspamd, sizeof (struct rspamd_main)); @@ -243,7 +244,7 @@ main (int argc, char **argv) child_dead = 0; msg_debug ("main: catch SIGCHLD signal, finding terminated worker"); /* Remove dead child form childs list */ - pid_t wrk = waitpid (0, &res, 0); + wrk = waitpid (0, &res, 0); TAILQ_FOREACH_SAFE (cur, &rspamd->workers, next, cur_tmp) { if (wrk == cur->pid) { /* Catch situations if active worker is abnormally terminated */ |