On Wed, Jun 16, 1999 at 05:34:03PM +0200, Gero Treuner wrote:
> Hopefully the following patch fixes the problem (removed a race
> condition, please try to repeat your conditions ;-) ...

Forget about that patch, try this one.


Gero
--- mutt-stable/signal.c        Thu Apr 22 14:54:50 1999
+++ mutt/signal.c       Wed Jun 16 17:42:56 1999
@@ -82,10 +82,10 @@
   if (i >= PidListLen)
   {
     /* quite a few children around... */
-    safe_realloc ((void **) &PidList, (PidListLen += 2) * sizeof (pid_t));
+    safe_realloc ((void **) &PidList, (PidListLen + 2) * sizeof (pid_t));
     PidList[i++] = pid;
-    for (; i < PidListLen; i++)
-      PidList[i] = 0;
+    PidList[i] = 0;
+    PidListLen += 2;
   }
 }
 

Reply via email to