Parent: 044baf78efa847a02472cbc0bf0257c365821d7a
Author: Philip Withnall <philip.withnall@gmail.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-11-25 14:52:45
Tree: c7a9cc240801112d59088e64e671bc8190d993ff
client: Fix handling of (G_IO_IN | G_IO_HUP) input case If running bluetoothctl as a subprocess from another process, and piping input to it, it’s possible for the stdin pipe to be closed by the parent process while there’s still data pending in its buffer. This results in input handler callbacks with condition (G_IO_IN | G_IO_HUP). All of the pending input should be handled before closing bluetoothctl.
Diffstat
| M | client/main.c | | | 6 | +++++- |
1 files changed, 5 insertions(+), 1 deletions(-)