Skip site navigation (1) Skip section navigation (2)

Re: postmaster.pid

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>,"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers-win32(at)postgresql(dot)org>,"PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: postmaster.pid
Date: 2004-08-26 14:17:25
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E41A78D8@ratbert.vale-housing.co.uk (view raw or flat)
Thread:
Lists: pgsql-hackers-win32pgsql-patches
 

> -----Original Message-----
> From: Magnus Hagander [mailto:mha(at)sollentuna(dot)net] 
> Sent: 25 August 2004 14:59
> To: Tom Lane
> Cc: Dave Page; pgsql-hackers-win32(at)postgresql(dot)org
> Subject: RE: [pgsql-hackers-win32] postmaster.pid 
> 
> Ok, if you say so :-) I had the general impression we wanted 
> that. But then let's go with the 
> send-signal-0-down-the-pipe-and-ignore-it-in-the-backend. :-)

Here's the massive 1 byte change required to do just that :-)

Regards, Dave.


===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/port/kill.c,v
retrieving revision 1.2
diff -u -r1.2 kill.c
--- kill.c	24 Jun 2004 18:53:48 -0000	1.2
+++ kill.c	26 Aug 2004 14:07:49 -0000
@@ -26,7 +26,7 @@
 	BYTE		sigRet = 0;
 	DWORD		bytes;
 
-	if (sig >= PG_SIGNAL_COUNT || sig <= 0)
+	if (sig >= PG_SIGNAL_COUNT || sig < 0)
 	{
 		errno = EINVAL;
 		return -1;

Responses

pgsql-patches by date

Next:From: Dave PageDate: 2004-08-26 14:38:55
Subject: Re: Service startup delay
Previous:From: Reini UrbanDate: 2004-08-26 13:09:18
Subject: Re: [PATCHES] 8.0.0b1: configure.in cygipc

pgsql-hackers-win32 by date

Next:From: Tom LaneDate: 2004-08-26 14:25:28
Subject: Re: postmaster.pid
Previous:From: Merlin MoncureDate: 2004-08-26 13:45:50
Subject: Re: Win32 release warning

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group