[OpenAFS] OpenAFS on Linux 2.5.x

Chaskiel M Grundman cg2v@andrew.cmu.edu
Thu, 17 Apr 2003 12:06:14 -0400


--On Thursday, April 17, 2003 08:59:19 -0400 chas williams
<chas@locutus.cmf.nrl.navy.mil> wrote:

> that being said, i think it would be enough to produce a mapping between
> PAGs and the process group leader's pid, uid, and start_time.  start_time
> wouldnt be necessary if you could track when a process group ended but
> alas that is not possible.

There's a problem with using process groups: They change _alot_. If you use
a shell with job control, programs run by the shell are in a different pgrp
than the shell itself. Using the session leader's pid is a little better,
but then you lose whenever your run a new xterm, since the toplevel shell
in each xterm is a session leader. This will also break any sort of daemon
process that you try to give tokens to, since such things tend to break off
and become their own session, in order to avoid getting SIGINT and SIGQUIT
from the terminal driver.

To be useful, an AFS pag needs to be durable, and not change unexpectedly
when a process performs some unrelated procedure