[vte] pty: Add debug output for when EOS happens
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] pty: Add debug output for when EOS happens
- Date: Tue, 26 Nov 2019 18:24:24 +0000 (UTC)
commit c33f440f867d210f03d8378a11c758a406234dd4
Author: Christian Persch <chpe src gnome org>
Date: Tue Nov 26 19:24:00 2019 +0100
pty: Add debug output for when EOS happens
src/vte.cc | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/vte.cc b/src/vte.cc
index 78181688..1431c1e3 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -3900,6 +3900,7 @@ Terminal::pty_io_read(int const fd,
GIOCondition const condition)
{
_vte_debug_print (VTE_DEBUG_WORK, ".");
+ _vte_debug_print(VTE_DEBUG_IO, "::pty_io_read condition %02x\n", condition);
/* We need to check for EOS so that we can shut down the PTY.
* When we get G_IO_HUP without G_IO_IN, we can process the EOF now.
@@ -4048,6 +4049,8 @@ out:
}
if (eos) {
+ _vte_debug_print(VTE_DEBUG_IO, "got PTY EOF\n");
+
/* Make a note of the EOS; but do not process it since there may be data
* to be processed first in the incomding queue.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]