Re: postmaster.pid

"Dave Page" <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32,gmane.comp.db.postgresql.devel.patches
Message-ID <E7F85A1B5FF8D44C8A1AF6885BC9A0E41A78D8@ratbert.vale-housing.co.uk>
 

> -----Original Message-----
> From: Magnus Hagander [mailto:[email protected]] 
> Sent: 25 August 2004 14:59
> To: Tom Lane
> Cc: Dave Page; [email protected]
> 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;

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.