tags 151627 +patch Thanks Hi
I had the same problem with formail -n as reported in this bug. The fix suggested by Elladan worked for me. For your convenience I attach it as a patch. Gaudenz -- Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. ~ Samuel Beckett ~
--- formisc.c.orig 2006-03-07 09:37:17.374517000 +0100
+++ formisc.c 2006-03-07 09:37:22.134517000 +0100
@@ -183,10 +183,10 @@
retval=excode;
} /* reap some children */
while(childlimit&&children>=childlimit||(child=fork())==-1&&children)
- for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;)
+ for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;--children)
{ if(excode!=EXIT_SUCCESS)
retval=excode;
- if(--children<=maxchild)
+ if(children<=maxchild)
break;
}
}
pgpZnZUAEKLvt.pgp
Description: PGP signature

