]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/utils: Add utils function for multiprocess execution
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Aug 2014 20:46:28 +0000 (21:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 08:29:49 +0000 (09:29 +0100)
commit72d153a3a90d31d9f4e41d77da24e44ccb33c56e
tree650c81a475ae292d0c83182e7cc5126fddaeb0e0
parent12b2a73d336d66596939eae5c9947d4054c0316e
lib/oe/utils: Add utils function for multiprocess execution

Our usage of multitprocessing is problematic. In particular, there is a bug
in python 2.7 multiprocessing where signals are not handled until command
completion instead of immediately.

This factors the multiprocess code into a function which is enhanced with
a workaround to ensure immediate signal handling and also better SIGINT
handling which should happen in the parent, not the children to ensure
clean exits. The workaround for the signals is being added to the core
bb.utils function so it can benefit all users.

package_manager is then converted to use the new code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py
meta/lib/oe/utils.py