pid_t getpgrp(void); ret:调用进程的进程组ID
pid_t getpgid(pid_t pid); ret:process group ID on seccess, -1 on error
int setpgid(pid_t pid, pid_t pgid); ret:0/-1
process group leader:
pid_t setsid(void); ret:process group ID on seccess,-1 on error
session leader:
pid_t getsid(viod); ret: session leader's process group ID on seccess, -1 on error
阅读(1129) | 评论(0) | 转发(0) |