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.
This commit is contained in:
Bert Belder 2012-08-22 20:40:14 +02:00
parent 120e2c1335
commit a787a16ac3

View File

@ -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
}