termpty: add some debug

This commit is contained in:
Boris Faure 2021-01-07 22:31:59 +01:00
parent cfdab5a2af
commit f7d509a95f
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 5 additions and 2 deletions

View File

@ -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 */