On Thursday, August 03, 2000 11:57 AM, Laird Nelson 
[SMTP:[EMAIL PROTECTED]] 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.

I think this behaviour would depend on the load on the system.  If your 
server is not being used as a multi user system and is lightly loaded, you 
would probably see this behaviour.  On a heavily loaded system, anything is 
possible!  Then again, if this is Linux, I don't know how similar to the 
commercial flavours of Unix it is in this regard.

***************************************************************
Chris Cameron                    Open Telecommunications NZ Ltd
Senior Solution Architect
[EMAIL PROTECTED]                           P.O.Box 10-388
      +64 4 495 8403 (DDI)                          The Terrace
fax:  +64 4 495 8419                                 Wellington
cell: +64 21 650 680                                New Zealand
Life, don't talk to me about life ....(Marvin - HHGTTG)


Reply via email to