process ids

Leo de Wit leo at philmds.UUCP
Fri Sep 2 23:20:56 AEST 1988


In article <171 at ispi.UUCP> jbayer at ispi.UUCP (id for use with uunet/usenet) writes:
|
|	I have a need to be able to identify the parent of a process
|which is executing on the system.  The program which will be doing the
|identification will not be either the owner, or even the same user. 
|However, it will have root privilages.  The idea is to be able to kill
|an entire process group with one kill().  I know it's available
|somewhere since ps is able to display it.  
|
|	I have found an include file	<sys/proc.h>	which apparently
|is used by the system to keep track of this.  I can find no reference to
|it in any manual I have looked in.
|
|	Anybody have any ideas?

See the manual pages of getpgrp(2), killpg(2), setpgrp(2).
And getppid(2) for the parent process id (not needed to kill the group).

          Leo.



More information about the Comp.unix.questions mailing list