DEP0139:process.umask() 无参数
\DEP0139: process.umask() with no arguments
版本历史
| 版本 | 变更 |
|---|---|
| v14.0.0, v12.19.0 | 仅文档弃用。 |
类型:仅文档
\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.