On Wed, Aug 02, 2000 at 07:56:59PM -0400, Laird Nelson wrote:
> TC wrote:
> > He is probably tring to do some stuff with the commit & loginfo scripts &
> > they hide in $TMPDIR/cvs-serv[pid] (server.c) & if script he is in is
> > calling
> > out to get the parent process id he's not going to find the right
> > cvs-serv[pid] dir
> > with the contant he is expecting ...
> 
> We have a winner.
> 
> So is it then true in general (I am almost 100% sure that it is) that in
> between the commitinfo/verifymsg scripts getting executed and the
> loginfo script getting executed some other program in the system could
> come along and grab a PID, thus making the delta between the loginfo
> ppid and the commitinfo ppid be greater than 3?
> 
> That is, the fact that I'm seeing nothing grabbing a pid inbetween the
> fork and exec calls doesn't mean that something COULDN'T grab a PID at
> that point.  SO I really shouldn't rely on the delta being 3 at all,
> should I.

Definately not.  Especially if the system becomes loaded.  

donald
> 
> Cheers,
> Laird

Reply via email to