Simultaneously writing from multiple threads to the same file descriptor is not safe on OS X. We already serialized all pwrite() system calls, apply the same workaround to the write() system call. Fixes a node.js test, test/simple/test-fs-sir-writes-alot.js, that was failing because parts of the output file got filled with nul bytes. |
||
|---|---|---|
| .. | ||
| unix | ||
| win | ||
| fs-poll.c | ||
| inet.c | ||
| uv-common.c | ||
| uv-common.h | ||