Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: uv_async handles should not be unref'ed automatically

  • Loading branch information...
piscisaureus authored and bnoordhuis committed Jun 9, 2012
1 parent fbe9974 commit 5c304435559edb6d401d506e1ea606d6068a1487
Showing with 2 additions and 1 deletion.
  1. +0 −1 src/unix/async.c
  2. +2 −0 src/unix/uv-eio.c
@@ -40,7 +40,6 @@ int uv_async_init(uv_loop_t* loop, uv_async_t* async, uv_async_cb async_cb) {

/* Note: This does not have symmetry with the other libev wrappers. */
ev_async_start(loop->ev, &async->async_watcher);
uv__handle_unref(async);
uv__handle_start(async);

return 0;
@@ -95,11 +95,13 @@ void uv_eio_init(uv_loop_t* loop) {
&loop->uv_eio_want_poll_notifier,
uv_eio_want_poll_notifier_cb);
loop->uv_eio_want_poll_notifier.flags |= UV__HANDLE_INTERNAL;
uv__handle_unref(&loop->uv_eio_want_poll_notifier);

uv_async_init(loop,
&loop->uv_eio_done_poll_notifier,
uv_eio_done_poll_notifier_cb);
loop->uv_eio_done_poll_notifier.flags |= UV__HANDLE_INTERNAL;
uv__handle_unref(&loop->uv_eio_done_poll_notifier);

uv_once(&uv__eio_init_once_guard, uv__eio_init);
}

0 comments on commit 5c30443

Please sign in to comment.
You can’t perform that action at this time.