]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Added WAITTIME (time to sleep before checking if we should spawn another mlmmj-send...
authormortenp <none@none>
Tue, 18 May 2004 15:25:36 +0000 (01:25 +1000)
committermortenp <none@none>
Tue, 18 May 2004 15:25:36 +0000 (01:25 +1000)
ChangeLog
include/mlmmj.h
src/mlmmj-send.c

index e3e55faa8173530ddcc2aac4680eb451e202afb6..3a40a54be4afc48bf5010583ceb1549610bbbd37 100644 (file)
--- 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
index 9f21547fd45f12f6cdc47ac9b08914d8cefd46ad..e4bb7bd3c0db971658fa53844d4db84672f57137 100644 (file)
@@ -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;
index fb74bc66e4660e3cf5d2044d6548e965ae77c056..6622ea63dd99374b5271502920d2d5972fda3276 100644 (file)
@@ -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)