backports: lib: remove raising ExecutionError exception
authorArend van Spriel <arend@broadcom.com>
Fri, 2 May 2014 01:03:37 +0000 (18:03 -0700)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 2 May 2014 01:44:14 +0000 (18:44 -0700)
commit3fcd1b1eae800f5a3c4a0f9760986d9af5882cf7
treeae5cf1914aa07e5e3177789838b397dd0509ec8e
parenta559c48f39eabfc327411c0e9c4d4f0eb8b1fb28
backports: lib: remove raising ExecutionError exception

In spatch a ExecutionError was raised, but that causes the thread
to finish without closing the outfile and more importantly without
putting (ret, fn) tuple on the return queue. This results in the
threaded_spatch routine to get stuck on the ret_q.get() call. This
patch removes raising the ExecutionError and just return the tuple.
The non-zero return code will result in ExecutionErrorThread exception
anyway.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
[mcgrof]: rebased to fit into pycocci
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
devel/pycocci