Fix Python plugins launching external processes

Without this change, Python plugins running external processes never
get the return code. See the collectd code [1] for the details.

[1] https://github.com/collectd/collectd/blob/master/contrib/python/getsigchld.py
9 files changed