How do I find the process group ID?

How do I find the process group ID?
Answer
A process can find its process group ID from
the system call getpgid. In some versions of Linux you may find the getpgid system call absent. In these versions the system call getpgrp (which requires no PID argument) provides the same functionality as the getpgid system call.
 

Tìm kiếm

Back
Top