commit | f7ca6040616f672a6f0039d55e39c610b7c1cf91 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Jan 04 18:18:45 2011 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Jan 04 18:21:22 2011 -0800 |
tree | c7ef22e5cff4199b8b2c4b3426586d87b7611a9c | |
parent | b4d65399fde02280b718e3b5b5cb1464a885c4b0 [diff] |
Fix infinite loop in init when debugging is turned off If a keychord is pressed when debugging is turned off, the main event poll in init will return an event on the keychord fd, but handle_keychord never reads the data. Once this happens, the poll will always return immediately, and init enters an infinite loop. Fix it by always reading from the keychord fd, but only handling the returned keychord if debugging is enabled. Change-Id: Ie4efa98247d3cc978d275dc8a4516b32aa710278