[issue24519] multiprocessing.Pool with maxtasksperchild starts too many processes

2015-06-27 Thread Zahari Dim
Changes by Zahari Dim : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24519] multiprocessing.Pool with maxtasksperchild starts too many processes

2015-06-27 Thread Zahari Dim
New submission from Zahari Dim: The following example should start two processes, but instead it starts three, even though only two do_work(). A third process is incorrectly started after the first one finishes. import os import time from multiprocessing import Pool def initprocess(): pri