commit | b58a82295529e775fbb900ecfb2d9104b2dafdc1 | [log] [tgz] |
---|---|---|
author | Rom Lemarchand <romlem@google.com> | Wed Jan 09 21:31:25 2013 -0800 |
committer | Rom Lemarchand <romlem@google.com> | Mon Jan 14 11:11:58 2013 -0800 |
tree | b1eda8cc7f4ba541ed6bc539609a245ae0f592e9 | |
parent | 1b325d196857d29fe5f022f2c574d3625e0adc08 [diff] |
logwrapper: prevent logwrap from hanging when child dies Sometimes the read on the PTY can wait indefinitely if the child dies. By using a poll statement that monitors both the output of the child and its state we prevent this from happening. Change-Id: I51d5556c66f039bca673145ca72db262977e1689