Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Aug 1996 21:25:34 -0400
From:      "Gary Palmer" <gpalmer@FreeBSD.org>
To:        "Frode Nordahl" <froden@bigblue.no>
Cc:        "questions@FreeBSD.org" <questions@FreeBSD.org>
Subject:   Re: Strange TCSH operation... 
Message-ID:  <22676.841541134@orion.webspan.net>
In-Reply-To: Your message of "Sat, 31 Aug 1996 13:17:54 BST." <199608311115.NAA03381@login.bigblue.no> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Frode Nordahl" wrote in message ID
<199608311115.NAA03381@login.bigblue.no>:
> ftp:~>; ps -aux |grep froden
> froden    6428  0.0  0.1   628   12  p1  RV    1Jan70    0:00.00 -tcsh (tcsh)
> froden    6409  0.0  6.8   628  972  p1  Ds    1:02PM    0:00.28 -tcsh (tcsh)
> froden    6427  0.0  1.9   452  272  p1  R+    1:03PM    0:00.01 ps -aux
> ftp:~>;

Look at the PID's. The tcsh with the funny start time is actually the
tcsh which is about to be turned into the 2nd half of your pipe (the
grep). I am not 100% sure WHY, but something in the fork/exec process
can cause that to happen ... for a VERY brief period, the parent
exists with a funny start time. There must be a race condition or
something. It's not all that important (since it only affects ps
output), so I don't think anyone has spent time looking into why. The
`problem' has been around for a while tho (probably all 2.x releases
have had this).

Gary
--
Gary Palmer                                          FreeBSD Core Team Member
FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?22676.841541134>