commit | bc31090b7a1784b765a171d82976a5ec410bfa1d | [log] [tgz] |
---|---|---|
author | Tao Wu <lepton@google.com> | Tue Feb 16 10:13:48 2016 -0800 |
committer | Tao Wu <lepton@google.com> | Tue Feb 16 10:13:48 2016 -0800 |
tree | e17252f4e251ad18273521d16d4836a81c478446 | |
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>