Re: negative pid?

From: Michael Brusser <michael(at)synchronicity(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: negative pid?
Date: 2004-05-13 20:58:41
Message-ID: DEEIJKLFNJGBEMBLBAHCEEGPEKAA.michael@synchronicity.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sorry, I should have checked the source first.
Just found this in miscinit.c :

* By convention, the owning process' PID is negated if it is a standalone
* backend rather than a postmaster. This is just for informational
purposes.

====================

> -----Original Message-----

> I see this code in pg_ctl:
>
> PID=`sed -n 1p $PIDFILE`
> if [ "$PID" -lt 0 ];then
> PID=`expr 0 - $PID`
>
>
> Wnen it is possible (and why) to have a negative number in postmaster.pid?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-05-13 21:01:50 Bogus permissions display in 7.4
Previous Message Matthew T. O'Connor 2004-05-13 20:39:33 Re: [HACKERS] pg_autovacuum Win32 service patch #2