summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_main.c
diff options
context:
space:
mode:
authorMike McCormack <mj.mccormack@samsung.com>2011-07-11 02:51:37 +0000
committerMike McCormack <mikem@ring3k.org>2011-07-11 02:51:37 +0000
commit4ff69d688c12637e4dcdf3906854f8eba52d562c (patch)
treebd223c494617b28e2ca2d3fd39338f9f15e03abd /legacy/ecore/src/lib/ecore/ecore_main.c
parent81098de5a63d15332216d5905998aed3a9536fd1 (diff)
ecore: Fix logic bug in g_main_loop
Want to use timerfd if either seconds or nanoseconds is non-zero. Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 61224
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_main.c b/legacy/ecore/src/lib/ecore/ecore_main.c
index c9ebc080ec..37b2c73a98 100644
--- a/legacy/ecore/src/lib/ecore/ecore_main.c
+++ b/legacy/ecore/src/lib/ecore/ecore_main.c
@@ -520,7 +520,7 @@ _ecore_main_gsource_prepare(GSource *source __UNUSED__, gint *next_time)
520 ts.it_value.tv_nsec = fmod(t*NS_PER_SEC, NS_PER_SEC); 520 ts.it_value.tv_nsec = fmod(t*NS_PER_SEC, NS_PER_SEC);
521 521
522 /* timerfd cannot sleep for 0 time */ 522 /* timerfd cannot sleep for 0 time */
523 if (ts.it_value.tv_sec && ts.it_value.tv_nsec) 523 if (ts.it_value.tv_sec || ts.it_value.tv_nsec)
524 { 524 {
525 r = timerfd_settime(timer_fd, 0, &ts, NULL); 525 r = timerfd_settime(timer_fd, 0, &ts, NULL);
526 if (r < 0) 526 if (r < 0)