get_pgid
os
0.1.0
get_
pgid
Sections
参数
返回值
In os::
kernel::
syscall::
task
os
::
kernel
::
syscall
::
task
Function
get_
pgid
Copy item path
Source
pub fn get_pgid(pid: c_int) -> c_int
Expand description
获取进程组 ID
§
参数
pid
: 进程 ID。如果为 0,返回调用进程的 PGID
§
返回值
成功: 返回进程组 ID
失败: 返回 -ESRCH (进程不存在或 pid 为负数)