On Tue, Nov 26, 2013 at 9:42 PM, Peter Eisentraut <pete...@gmx.net> wrote:
> src/backend/postmaster/postmaster.c:2255: indent with spaces. > + else > src/backend/postmaster/postmaster.c:2267: indent with spaces. > + break Not sure how that happened! Attached is the updated patch. Best regards, -- Gurjeet Singh http://gurjeet.singh.im/ EnterprsieDB Inc. www.enterprisedb.com
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index ccb8b86..cdae6e5 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2236,6 +2236,20 @@ ClosePostmasterPorts(bool am_syslogger) StreamClose(ListenSocket[i]); ListenSocket[i] = PGINVALID_SOCKET; } + else + { + /* + * Do not process the rest of the array elements since we expect + * the presence of an invalid socket id to mark the end of valid + * elements. + */ +#ifdef USE_ASSERT_CHECKING + int j; + for(j = i; j < MAXLISTEN; j++) + Assert(ListenSocket[i] == PGINVALID_SOCKET); +#endif + break; + } } /* If using syslogger, close the read side of the pipe */
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers