[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What should I do about getpgrp?



On 19 Jun 1996 rdm@tad.micro.umn.edu wrote:

> I'm working on a package that makes extensive use of getpgrp(pid), but
> the getpgrp() that comes in libc5 doesn't take an argument (which is
> not fun if you're managing a number of process groups from a number
> of distinct sessions).

The fifth item in /proc/pid/stat is the pgrp.  You could easily write a
getpgrp() which makes use of that.  See fs/proc/array.c getstat() for
more details.


Guy



Reply to: