Skip to content

doc: process.umask doc unclear #14169

Closed
Closed
@jsumners

Description

@jsumners
  • Subsystem: doc

https://github.com/nodejs/node/blob/199ad1d73f81c1d568232df418090e9ce3c4a7fb/doc/api/process.md#processumaskmask

The documentation for process.umask reads:

The process.umask() method sets or returns the Node.js process's file mode creation mask. Child processes inherit the mask from the parent process. The old mask is return if the mask argument is given, otherwise returns the current mask.

I have emphasized the last sentence since that is the one that doesn't make any sense. Is it saying var oldmask = process.umask() or var oldmask = process.umask(0)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.processIssues and PRs related to the process subsystem.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions