billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=f7d509a95f7fc8ed5977a529fca63f2b7c847301

commit f7d509a95f7fc8ed5977a529fca63f2b7c847301
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Jan 7 22:31:59 2021 +0100

    termpty: add some debug
---
 src/bin/termpty.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 60497aa..f5f7e85 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -425,12 +425,15 @@ _cb_exe_exit(void *data,
    Termpty *ty = data;
    Eina_Bool res;
 
-   if (ev->pid != ty->pid) return ECORE_CALLBACK_PASS_ON;
+   DBG("got exit (code:%d) on pid %d (ty->pid=%d)", ev->exit_code, ev->pid, 
ty->pid);
+   if (ev->pid != ty->pid)
+     return ECORE_CALLBACK_PASS_ON;
    ty->exit_code = ev->exit_code;
 
    ty->pid = -1;
 
-   if (ty->hand_exe_exit) ecore_event_handler_del(ty->hand_exe_exit);
+   if (ty->hand_exe_exit)
+     ecore_event_handler_del(ty->hand_exe_exit);
    ty->hand_exe_exit = NULL;
 
    /* Read everything till the end */

-- 


Reply via email to