raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=19e6a5b7a34cfea4a624bb2618b4bb0fcdf856c4

commit 19e6a5b7a34cfea4a624bb2618b4bb0fcdf856c4
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Jan 2 16:01:34 2021 +0000

    watchdog - dont let mainloop fd handler handle pipe - wait handles it
---
 src/bin/e_watchdog.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_watchdog.c b/src/bin/e_watchdog.c
index e98050ff1..d6aea92f2 100644
--- a/src/bin/e_watchdog.c
+++ b/src/bin/e_watchdog.c
@@ -10,7 +10,10 @@ _cb_watchdog_thread_pingpong_pipe(void *data EINA_UNUSED, 
void *buf, unsigned in
    unsigned long long *seq = buf;
    unsigned long long seq_num = bytes / sizeof(int);
 
-   if (seq_num < 1) return; // XXX: error
+   if (seq_num < 1)
+     {
+        return;
+     }
    last_seq = seq[seq_num - 1];
 }
 
@@ -70,6 +73,8 @@ e_watchdog_begin(void)
 {
    // set up main-loop ping-pong to a thread
    _watchdog_pipe = ecore_pipe_add(_cb_watchdog_thread_pingpong_pipe, NULL);
+   // stop mainloop watching with fd handler as wer wait manually
+   ecore_pipe_freeze(_watchdog_pipe);
    _watchdog_thread = ecore_thread_feedback_run
      (_cb_watchdog_thread_pingpong,
       _cb_watchdog_thread_pingpong_reply,

-- 


Reply via email to