DEP0139:process.umask() 没有参数
【DEP0139: process.umask() with no arguments】
类型:仅文档
【Type: Documentation-only】
调用不带参数的 process.umask() 会导致全局 umask 被写入两次。这会在线程之间引入竞争条件,并且可能成为安全漏洞。没有安全的跨平台替代 API。
【Calling process.umask() with no argument causes the process-wide umask to be
written twice. This introduces a race condition between threads, and is a
potential security vulnerability. There is no safe, cross-platform alternative
API.】