From a787a16ac371b2c5ed5c8a61a5602e71beff81e0 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 22 Aug 2012 20:40:14 +0200 Subject: [PATCH] unix: fix uv_async_send not working with Sun Studio uv_async_send would always return 1 when non-gcc compilers were used. When uv_async_send returns 1 no attempt is made to make port_getn return, so in this situation uv_async_send didn't wake up the event loop. --- src/unix/async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/async.c b/src/unix/async.c index 6386c6d6..78c1863e 100644 --- a/src/unix/async.c +++ b/src/unix/async.c @@ -55,7 +55,7 @@ inline static int uv__async_make_pending(volatile sig_atomic_t* ptr) { return __sync_val_compare_and_swap(ptr, 0, 1) != 0; #else *ptr = 1; - return 1; + return 0; #endif }