[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...
Size: 52005 bytes
Desc: not available
More information about the lldb-commits