Index: rand_sleep.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/rand_sleep.c,v retrieving revision 1.3 diff -u -r1.3 rand_sleep.c --- rand_sleep.c 7 Jun 2005 11:08:42 -0000 1.3 +++ rand_sleep.c 10 Sep 2005 00:19:11 -0000 @@ -1,9 +1,10 @@ -#include "config.h" #include "system.h" -#include "rand_sleep.h" - +#include #include +#include + +#include "rand_sleep.h" void rand_sleep(double min, double max) { @@ -17,5 +18,7 @@ srand((uint)timeval.tv_usec); /* RATS: ignore - this is safe enough */ } delay = (int)(min + ((max-min)*rand()/(RAND_MAX+1.0))); + fprintf(stderr, "[pid %lu] rand_sleep( %ld, %ld, %8ld )\n", + (unsigned long)getpid(), (long)min, (long)max, delay); bf_sleep(delay); } Index: register.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/register.c,v retrieving revision 1.45 diff -u -r1.45 register.c --- register.c 21 Aug 2005 19:10:11 -0000 1.45 +++ register.c 10 Sep 2005 00:19:11 -0000 @@ -74,7 +74,8 @@ if (first) first = false; else { - fprintf(stderr, "retrying registration after avoided deadlock...\n"); + fprintf(stderr, "[pid %lu] retrying registration after avoided deadlock...\n", + (unsigned long)getpid()); begin_wordlist(list); }