diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-23 19:26:56 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-23 19:26:56 +0900 |
commit | bb7e8456c4102ea05140d16c6d3e8154f2f74401 (patch) | |
tree | a45ae3da1b85d012e2a07f1874188f5df791a2ca | |
parent | 144f5f73e08503af6dad75105c2fad7612454d41 (diff) | |
download | efl-bb7e8456c4102ea05140d16c6d3e8154f2f74401.tar.gz |
eina debug timer - handle fail wakeup write with error complaint
fix CID 1377528
-rw-r--r-- | src/lib/eina/eina_debug_timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina/eina_debug_timer.c b/src/lib/eina/eina_debug_timer.c index fa3fd1a549..fb1d632188 100644 --- a/src/lib/eina/eina_debug_timer.c +++ b/src/lib/eina/eina_debug_timer.c @@ -78,7 +78,8 @@ end: t->rel_time = t->timeout - prev_time; if (!t2) _timers = eina_list_append(_timers, t); else _timers = eina_list_prepend_relative(_timers, t, t2); - write(pipeToThread[1], &c, 1); + if (write(pipeToThread[1], &c, 1) != 1) + e_debug("EINA DEBUG ERROR: Can't wake up thread for debug timer"); } static void * |