aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-06-10 17:41:41 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-06-10 17:41:41 +0400
commit25395e554edc13f457e48d5fdf69095b3dbe5e17 (patch)
treee8715de6b909d4b0c7d0f5dcf8122582a6511902 /main.c
parent2564777f536f6fde73ddaf24eaf4697775970e13 (diff)
downloadrspamd-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 1b7a00f15..8cc906b09 100644
--- a/main.c
+++ b/main.c
@@ -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 */