This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 127c1f7f57c8d10e46d5de879e0e64efb1c42961
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 29 13:12:08 2026 -0600

    ecore: delete signal pipe handlers before closing their fds
    
    _ecore_signal_pipe_shutdown() closed each pipe and then deleted its
    loop handler, so removing the fd from epoll failed with EBADF. Every
    ecore_shutdown() logged "fd N closed, can't remove from epoll -
    reinit!" once per pipe and rebuilt the epoll set each time.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/lib/ecore/ecore_signal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_signal.c b/src/lib/ecore/ecore_signal.c
index ce670601bd..07e9ddb0f0 100644
--- a/src/lib/ecore/ecore_signal.c
+++ b/src/lib/ecore/ecore_signal.c
@@ -295,9 +295,10 @@ _ecore_signal_pipe_shutdown(void)
      {
         for (unsigned int i = 0; i < NUM_PIPES; i++)
           {
+             /* the handler takes the fd out of epoll, so it goes first */
+             efl_del(sig_pipe_handler[i]);
              close(sig_pipe[i][0]);
              close(sig_pipe[i][1]);
-             efl_del(sig_pipe_handler[i]);
           }
      }
    memset(sig_pipe, -1, sizeof(sig_pipe));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to