get_ppid

Function get_ppid 

Source
pub fn get_ppid() -> c_int
Expand description

获取当前任务的父进程 ID

§返回值:

  • 父进程 ID, 该进程要么是创建该进程的进程, 要么是重新归属的父进程