diff options
author | Keith Owens <k10@ocs.com.au> | 2011-09-16 17:55:28 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-09-16 17:55:28 +0200 |
commit | 52747cc1752b8a8e35aee47db2f55d3a3c365ce3 (patch) | |
tree | b5085f6338d3bbb57c7f2f58388765b2dc28ccde /common/smtppass.h | |
parent | 1994fa733c1c09202d85db952a28da26a19f0669 (diff) |
workaround for race between waitpid(-1) and waitpid(pid)
Sometimes waitpid(-1) in cb_check_data reaps a child that has just terminated,
before waitpid(pid) in wait_process can reap it. Linux waitpid(pid,,WNOHANG)
may not return an error if the child has already terminated, which results in
wait_process looping waiting for the child which has already terminated. The
symptom is a spurious "timeout waiting for filter command to exit".
Diffstat (limited to 'common/smtppass.h')
0 files changed, 0 insertions, 0 deletions