Author ede
Recipients ede
Date 2009-07-07.11:39:01
SpamBayes Score 4.35919e-11
Marked as misclassified No
Message-id <>
In multiprocessing, if you give a a zero-length iterator and
specify a nonzero chunksize, the process hangs indefinitely. Example:

import multiprocessing
pool = multiprocessing.Pool(), [], chunksize=1)
# hang forever

Attached simple testcase and simple fix. I observed this behavior on 2.6
and 3.1, but only verified the patch on 3.1. Unless the line numbers
changed it will probably fix it on 2.6 as well.
Date User Action Args
2009-07-07 11:39:04edesetrecipients: + ede
2009-07-07 11:39:04edesetmessageid: <>
2009-07-07 11:39:03edelinkissue6433 messages
2009-07-07 11:39:02edecreate