Skip to content

Commit

Permalink
doc: add note about fs.close undefined behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Dec 14, 2019
1 parent 76cbb66 commit a284117
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/fs.md
Expand Up @@ -1533,6 +1533,9 @@ changes:
Asynchronous close(2). No arguments other than a possible exception are given
to the completion callback.

Calling `fs.close` on any file descriptor (`fd`) that is currently in use
through `fs.read`, `fs.write` or `fs.writev` may lead to undefined behavior.

## fs.closeSync(fd)
<!-- YAML
added: v0.1.21
Expand Down

0 comments on commit a284117

Please sign in to comment.