From e8494dddc0569d573913faf08ff7276ccb2e9f5d Mon Sep 17 00:00:00 2001 From: Daisuke Murase Date: Wed, 11 Jan 2012 17:06:41 +0900 Subject: [PATCH] unix: use EVRUN_ONCE in uv_run_once() EVRUN_NOWAIT means "poll and don't block". Use EVRUN_ONCE instead, "wait for single event". --- src/unix/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/core.c b/src/unix/core.c index 210f8fe3..67e08976 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -221,7 +221,7 @@ int uv_run(uv_loop_t* loop) { int uv_run_once(uv_loop_t* loop) { - ev_run(loop->ev, EVRUN_NOWAIT); + ev_run(loop->ev, EVRUN_ONCE); return 0; }