Compare commits

...

2 Commits

Author SHA1 Message Date
Boris Faure 092f542d76
termpty: better comment 2023-03-12 17:09:16 +01:00
Nekobit 123c5b0859 termpty: Fix issue with exiting on *BSD's.
Noticable when the user had more than one tab and pressed ^D or exited their shell. Caused freeze up and lots of fd deletion errors in the console.

Note: This could potentially be an issue for *BSD's in the ecore?
2023-03-11 18:32:29 -05:00
1 changed files with 3 additions and 6 deletions

View File

@ -387,13 +387,10 @@ _fd_do(Termpty *ty, Ecore_Fd_Handler *fd_handler, Eina_Bool false_on_empty)
return ECORE_CALLBACK_CANCEL;
}
// it seems the BSDs can not read from this side of the pair if the other side
// is closed ... but no longer just bsd's - i have seen this now on linux
// it seems one can not read from this side of the pair if the other side
// is closed
if (ty->pid == -1)
{
ty->hand_fd = NULL;
return ECORE_CALLBACK_CANCEL;
}
return ECORE_CALLBACK_CANCEL;
if (ecore_main_fd_handler_active_get(fd_handler, ECORE_FD_READ))
{