]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving log
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 20 Jun 2025 03:46:50 +0000 (23:46 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 20 Jun 2025 03:46:50 +0000 (23:46 -0400)
Makefile
lib/modrec.c

index 65c1160b5b77651afdaa403daa713c2c37da21ca..45234ec866f4dc07d44df61e67c7f299bad179ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,7 @@ tlsrcvr       :
                        -cert certs/localhost-cert.pem  \
                        -key certs/localhost-key.pem    \
                        -starttls smtp                  \
-                       -connect courriel.colba.net:25
+                       -connect $(TESTSRV):$(TESTPORT) 
 #                      -connect smtp1.example.com:25
 #                      -connect mailpostg.example.com:25
 #                      -connect courriel.colba.net:25
index d66af6bd77f821694944b33815417c206337b3c1..fe57f20e6bc3a5b57e53423eb9aca27066aef687 100644 (file)
@@ -138,6 +138,7 @@ static void setready(SOCPTR *socptr)
 
 {
 #define OPEP    "modrec.c:setready"
+#define TSLEEP  5
 
 int maxretry;
 pid_t *childs;
@@ -193,13 +194,13 @@ while (proceed==true) {
       break;
     case 4      :       //Relax time
       phase=0;          //lets continue to check childs
-      (void) rou_alert(5,"%s, start sleep",OPEP);
-      (void) sleep(5);  //signal received to exit fast.
+      (void) rou_alert(10,"%s, start sleep '%d' second",OPEP,TSLEEP);
+      (void) sleep(TSLEEP);  //signal received to exit fast.
       if (childout==true) {
-        (void) rou_alert(5,"%s, Got child out",OPEP);
+        (void) rou_alert(9,"%s, Got child out",OPEP);
         childout=false; 
         }
-      (void) rou_alert(5,"%s, Exit from sleep",OPEP);
+      (void) rou_alert(10,"%s, Exit from sleep",OPEP);
       if ((hangup==true)||(reload==true))
         phase=999;      //exiting under signal
       break;
@@ -211,6 +212,7 @@ while (proceed==true) {
     }
   phase++;
   }
+#undef  TSLEEP
 #undef  OPEP
 }
 /*