Commit dee188f8 authored by Arnaud Fontaine's avatar Arnaud Fontaine
Browse files

multiprocessing does not cope well with terminate() without join() straight

away as it needs to send for example  the exit status over a pipe and also the
SIGCHLD was interrupting this pipe.

Moreover,  there  was a  race  condition in  the  previous  code leaving  some
children left in some cases because some SIGCHLD got lost.

Also, ignore further  SIGTERM once one has been received  to avoid receiving a
SIGTERM   before  putting   the   result  to   the   queue  and   interrupting
multiprocessing magic.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46025 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4b5f59c2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment