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

Signed-off-by: Arend van Spriel <>
[mcgrof]: rebased to fit into pycocci
Signed-off-by: Luis R. Rodriguez <>
1 file changed