Skip to content

documentation on Stream.write misses that callback does not ensure that data written to process.stdout/.stderr is flushed #3670

Closed
@minesworld

Description

@minesworld
 var empty = new Buffer(0)
  process.stdout.write(empty, function() { 
    process.stderr.write(empty, function() { 
       process.exit(code);
    });
  });

doesn't reliable ensure that a consumer of node.js will get all data (yes - it is a PIPE, not a FILE !!).

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions