the point of this bugfix is that if one keeps calling waitpid
with an explicite pid, then using the pid "0" should be
avoided at all cost, as it does act in an unexpected way:
instead of waiting for the process with pid 0, it just
waits for any process with the same group-id as the calling
program, and thereby the exitcode could get lost...