Xref: utzoo comp.unix.wizards:10864 comp.unix.xenix:3214 comp.unix.questions:9084 comp.unix.microport:1472 Path: utzoo!utgpu!attcan!uunet!mcvax!hp4nl!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.unix.wizards,comp.unix.xenix,comp.unix.questions,comp.unix.microport Subject: Re: process ids Keywords: utmp ps process id Message-ID: <787@philmds.UUCP> Date: 2 Sep 88 13:20:56 GMT References: <171@ispi.UUCP> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 19 In article <171@ispi.UUCP> jbayer@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 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.