bug-cvs
[Top][All Lists]
Advanced

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

Re: adding a new CVS_PID environment variable


From: Derek Robert Price
Subject: Re: adding a new CVS_PID environment variable
Date: Tue, 25 Feb 2003 18:25:31 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01

Mark D. Baushke wrote:

Hi Folks,

The FreeBSD folks have had a CVS_PID environment variable in their
version of cvs since 1997-05-15 and they got it from the OpenBSD folks
before that. It is a simple addition. Here is my port of this feature.

Can you provide some examples why is would be useful to have the PID of the parent process?

The c "getppid" function is defined by POSIX, BSD 4.3, and SVID to return the PID of the parent process. Isn't there some shell equivalent? At the least, something like `ps -eaf |grep $$' should be usable. What's the point of including this in the CVS code?

Derek

--
               *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
--
... God forbid we should ever be twenty years without such a rebellion.  The
people cannot be all, and always, well informed.  The part which is wrong will
be discontented, in proportion to the importance of the facts they misconceive.
If they remain quiet under such misconceptions, it is lethargy, the forerunner
of death to the public liberty.  ...  And what country can preserve its
liberties, if it's rulers are not warned from time to time, that this people
preserve the spirit of resistance?  Let them take arms.  The remedy is to set
them right as to the facts, pardon and pacify them.  What signify a few lives
lost in a century or two?  The tree of liberty must be refreshed from time to
time, with the blood of patriots and tyrants.  It is its natural manure.

                        - Thomas Jefferson, Nov. 13, 1787, letter to
                            William S. Smith, see _Jefferson On Democracy_,
                            20 (S. Padover ed. 1939).








reply via email to

[Prev in Thread] Current Thread [Next in Thread]