From: mortenp Date: Tue, 18 May 2004 15:25:36 +0000 (+1000) Subject: Added WAITTIME (time to sleep before checking if we should spawn another mlmmj-send... X-Git-Tag: RELEASE_1_0_0~245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b9bbeccb6e7db5ae6779c09d9df695eeaf1a38d;p=thirdparty%2Fmlmmj.git Added WAITTIME (time to sleep before checking if we should spawn another mlmmj-send process) option in mlmmj.h --- diff --git a/ChangeLog b/ChangeLog index e3e55faa..3a40a54b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ + o Added WAITTIME (time to sleep before checking if we should spawn another + mlmmj-send process) option in mlmmj.h o Fixed error handling in mlmmj-unsub if we can not open subscribers.d/ 0.5.0 o Use a subscribers.d/ directory for several subscribers files. mlmmj-send diff --git a/include/mlmmj.h b/include/mlmmj.h index 9f21547f..e4bb7bd3 100644 --- a/include/mlmmj.h +++ b/include/mlmmj.h @@ -15,6 +15,7 @@ #define READ_BUFSIZE 2048 #define RECIPDELIM '+' #define MAX_CONNECTIONS 3 /* How many max connections to relayhost */ +#define WAITSLEEP 1000 struct mailhdr { const char *token; diff --git a/src/mlmmj-send.c b/src/mlmmj-send.c index fb74bc66..6622ea63 100644 --- a/src/mlmmj-send.c +++ b/src/mlmmj-send.c @@ -404,7 +404,7 @@ int main(int argc, char **argv) free(subfilename); while((conncount >= MAX_CONNECTIONS)) - usleep(100); + usleep(WAITSLEEP); childpid = fork(); if(childpid < 0)