新增于: v0.1.31
process.getgid()
方法返回 Node.js 进程的数字标记的组身份(参见 getgid(2)
)。
if (process.getgid) {
console.log(`当前的 gid: ${process.getgid()}`);
}
这个函数只在 POSIX 平台有效(在 Windows 或 Android 平台无效)。
Added in: v0.1.31
The process.getgid()
method returns the numerical group identity of the
process. (See getgid(2)
.)
if (process.getgid) {
console.log(`Current gid: ${process.getgid()}`);
}
This function is only available on POSIX platforms (i.e. not Windows or
Android).