]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/utils: Handle exceptions in multiprocess_exec
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Sep 2017 13:24:31 +0000 (14:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Sep 2017 22:58:49 +0000 (23:58 +0100)
commit7f2f9b3ff011b340b5d23bb7c47b12c357dc9f02
treee1d1d8e60527b3b42e50eb7e6151e19b3da79dee
parentce11cb449222bc47fea4f6d66ff1cc7cdc529ab9
lib/oe/utils: Handle exceptions in multiprocess_exec

Currently exceptions that happen in pool commands are ignored. Any errors
would be printed on the console but everything else is silent.

Switch to use pool.map_async which allows for an error_callback which
we can use to detect exceptions and make sure these errors are handled.

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