Skip to content

Commit a284117

Browse files
committed
doc: add note about fs.close undefined behavior
1 parent 76cbb66 commit a284117

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/fs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,9 @@ changes:
15331533
Asynchronous close(2). No arguments other than a possible exception are given
15341534
to the completion callback.
15351535

1536+
Calling `fs.close` on any file descriptor (`fd`) that is currently in use
1537+
through `fs.read`, `fs.write` or `fs.writev` may lead to undefined behavior.
1538+
15361539
## fs.closeSync(fd)
15371540
<!-- YAML
15381541
added: v0.1.21

0 commit comments

Comments
 (0)