diff options
author | Tao Wu <lepton@google.com> | 2016-02-16 10:13:48 -0800 |
---|---|---|
committer | Tao Wu <lepton@google.com> | 2016-02-16 10:13:48 -0800 |
commit | bc31090b7a1784b765a171d82976a5ec410bfa1d (patch) | |
tree | e17252f4e251ad18273521d16d4836a81c478446 /libutils/ProcessCallStack.cpp | |
parent | 1c3d78403009008130d24c27ab3ea24ac6b14dfd (diff) |
Don't go busy loop when waiting child process.
Before this change, code works like this: after gets POLLHUP from poll, it just
go a busy loop to do poll -> waitpid -> poll -> waitpid ... until child process
really exit. This doesn't make sense and is waste of CPU.
Change-Id: If6cd8b0245587d623e309c3ae27f162e1c7ef504
Signed-off-by: Tao Wu <lepton@google.com>
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
0 files changed, 0 insertions, 0 deletions