Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
Procmail's formail command's "-n X" creates too many jobs. This can hang the machine by: (1) causing processess to be killed due to out of memory errors, (2) causing thrashing by forcing jobs to swap, (3) prevent new processes from spawning. Steps to reproduce: In a window: watch -n .1 pgrep '[s]leep' In another window: formail -n 2 -s sleep 2 < AN_MBOX_WITH_AT_LEAST_10_MESSAGES Actual results: more than two processes show up in watch command. Expected results: two processes show up at most in watch command. Procmail version: mail-filter/procmail-3.22-r7
Created an attachment (id=77783) [details] Fix for bug. Obvious fix. Previously, each time there were too many children, the code would allow one more child to be created the next time there were too many children. This fix removes the extra decrement on a variable containing the number of outstanding children. Such that, a decrement only occurs once per child reaped.
Done, thanks and sorry for the looooong delay. - ferdy