commit | 00ff352c34cb46d96156cdef69a6acf0bdfa5356 | [log] [tgz] |
---|---|---|
author | Tim Murray <timmurray@google.com> | Thu Feb 17 10:01:19 2022 -0800 |
committer | Tim Murray <timmurray@google.com> | Thu Feb 17 11:08:08 2022 -0800 |
tree | 64fa0c8acb626c89d921440ed7431c84ad4cbf6f | |
parent | a4419eb57ab7f69b8c1d3ce125e2207b66a05393 [diff] |
dumpstate: fix race in waitpid_with_timeout() If the child process exits fast enough, then sigtimedwait will never get a signal and never actually call waitpid. Check to see if the child process has already died before calling sigtimedwait. Test: dumpstate_test Bug: 215574756 Change-Id: I5d0fa5d537e502b2a8254f8d6ba218f3f7161229