From 29c469111f2145f78a7d11dc8bcdd39be697f66e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 28 Apr 2013 12:45:20 +0000 Subject: *** empty log message *** --- ev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ev.c') diff --git a/ev.c b/ev.c index e5bd5ab..2fef11c 100644 --- a/ev.c +++ b/ev.c @@ -2106,8 +2106,6 @@ evpipe_init (EV_P) fd_intern (fds [0]); } - fd_intern (fds [1]); - evpipe [0] = fds [0]; if (evpipe [1] < 0) @@ -2123,6 +2121,8 @@ evpipe_init (EV_P) close (fds [1]); } + fd_intern (evpipe [1]); + ev_io_set (&pipe_w, evpipe [0] < 0 ? evpipe [1] : evpipe [0], EV_READ); ev_io_start (EV_A_ &pipe_w); ev_unref (EV_A); /* watcher should not keep loop alive */ -- cgit v1.2.3