aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-18 11:39:57 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-18 19:40:36 +0000
commitbdea0d450476a077f64acbfe26e62251fcbb339d (patch)
treeaddb64eb5827492ddb4a4cbca4a65258184f15e6 /file.c
parent5c49facc4f2a9a054258c5921bc68293d6eab3e4 (diff)
Check for ECHILD, not for "not ECHILD".
That makes the logic a bit clearer (and puts the "unexpected other error" case at the end, where it should be). Put all the errno checks inside an else clause, making it clearer that it runs only if waitpid() returned -1. Add comments, including comments explaining why just driving on after getting EINTR should be OK. Change-Id: Iaa1b151393fcec8b4f5bd560ef913a224400932b Reviewed-on: https://code.wireshark.org/review/11951 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'file.c')
0 files changed, 0 insertions, 0 deletions