commit | 0f9c1427c8d43e8ee4282a3fbcc471963555f41a | [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 | 85c4babf6a3fbf1876352da7a0861b052bb9179d | |
parent | 72722b2cc24927ca372b0c5c05fee58b6b9f14df [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