Skip to content

Commit 00f306e

Browse files
flimzyneelance
authored andcommitted
Document that system calls block other goroutines.
1 parent 5987515 commit 00f306e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/syscalls.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ node-gyp rebuild
2727
mkdir -p ~/.node_libraries/
2828
cp build/Release/syscall.node ~/.node_libraries/syscall.node
2929
```
30+
31+
### Caveats
32+
33+
Note that even with syscalls enabled in Node.js, some programs may not behave as expected due to the fact that the current implementation blocks other goroutines during a syscall, which can lead to a deadlock in some situations. This is not considered a bug, as it is considered sufficient for most test cases (which is all Node.js should be used for). Get in contact if you feel like you want to change this situation.

0 commit comments

Comments
 (0)