当前位置: 技术问答>linux和unix
子进程怎么获得父进程的PID号啊
来源: 互联网 发布时间:2016-12-20
本文导语: 子进程怎么获得父进程的PID号啊 有什么函数吗?或者用什么方法获得 | getppid() | getpid() returns the process ID of the current process. (This is often used by routines that generate uniq...
子进程怎么获得父进程的PID号啊
有什么函数吗?或者用什么方法获得
有什么函数吗?或者用什么方法获得
|
getppid()
|
getpid() returns the process ID of the current process. (This is often used by routines that generate unique temporary filenames.)
getppid() returns the process ID of the parent of the current process.
getppid() returns the process ID of the parent of the current process.