Skip to content

Commit

Permalink
unix: fix uv_async_send not working with Sun Studio
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
piscisaureus committed Aug 22, 2012
1 parent 120e2c1 commit a787a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/async.c
Expand Up @@ -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
}

Expand Down

0 comments on commit a787a16

Please sign in to comment.