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

Re: Building Postgresql under Windows question

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Dann Corbit <DCorbit(at)connx(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Building Postgresql under Windows question
Date: 2009-04-28 19:41:59
Message-ID: 49F75C07.6000208@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers

Dann Corbit wrote:
> Pg_ctl.exe is exiting with a success code from line 1946 of PG_CTL.C
>
> This is not appropriate behavior for a service unless shutdown has been
> requested.
>   

pg_ctl calls *StartServiceCtrlDispatcher*(). It can only get to the line 
you mention when called as a service after that call returns. MSDN states:

"If *StartServiceCtrlDispatcher* succeeds, it connects the calling 
thread to the service control manager and does not return until all 
running services in the process have entered the SERVICE_STOPPED state."

So it appears that something is causing your service to enter that state.

cheers

andrew




In response to

Responses

pgsql-hackers by date

Next:From: Dann CorbitDate: 2009-04-28 19:46:22
Subject: Re: Building Postgresql under Windows question
Previous:From: David FetterDate: 2009-04-28 19:17:20
Subject: Re: Keyword list sanity check

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