-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Asynchronous write() bug #2049
Copy link
Copy link
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.
I have this sample code :
Everything works as expected. The entire string is displayed to the output.
Then I add
process.exit()I noticed the "END" was missing. So I did
node app.js | wc -cwhich returned65536.I'm guessing this is used as buffer size somewhere. But still, why is process.exit() being called before write() has finished ?
iojs v2.3.1