Debug: provide for SIGALRM tracking
[exim.git] / src / src / child.c
index fb333d3a4bcbce9d7e2fb07d61f3703668f7845b..085f2660063a686cb559649bb162a2e4f8bf860f 100644 (file)
@@ -507,7 +507,7 @@ int yield;
 if (timeout > 0)
   {
   sigalrm_seen = FALSE;
-  alarm(timeout);
+  ALARM(timeout);
   }
 
 for(;;)
@@ -528,7 +528,7 @@ for(;;)
     }
   }
 
-if (timeout > 0) alarm(0);
+if (timeout > 0) ALARM_CLR(0);
 
 signal(SIGCHLD, oldsignal);   /* restore */
 return yield;