commit | 8dcdb57dafd554e801de97012e7d0ef6ec63a5ac | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Fri Oct 23 15:03:31 2015 -0700 |
committer | Josh Gao <jmgao@google.com> | Fri Oct 23 15:04:33 2015 -0700 |
tree | c19d3ab114519f49ccf28b9551efc282ccb4dee7 | |
parent | 38aee48fc695c25e15435e4ef235c8bc2e0afde9 [diff] |
adb: Mask SIGTTIN so that I/O works when backgrounded. SIGTTIN gets sent to the process when we attempt to read from stdin when we're in the background, which stops the process by default. Mask the signal so that the read returns -1 with errno set to EIO, instead. Change-Id: I4ae626b0670c05a1a05165539b9eed709e83d536