[Lldb-commits] [PATCH] D12612: Fix dotest on Windows after multiprocessing refactor

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 3 15:40:36 PDT 2015

zturner created this revision.
zturner added reviewers: tfiala, amccarth, chying.
zturner added a subscriber: lldb-commits.

On Windows, when you call pool.map, under the hood python will *again* import whatever the main module is.  In this case it's dotest.py.  Importing dotest then causes all of its code to run again, and since the main execution of dotest was not protected by if __name__ == "__main__", it would recursively kick off the entire process all over again.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12612.33983.patch
Type: text/x-patch
Size: 52005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150903/14f550e5/attachment-0001.bin>

More information about the lldb-commits mailing list