Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Authentication-Warning: shell-1.enteract.com: fcy set sender to fred AT ontosys DOT com using -f Date: Tue, 15 May 2001 11:04:55 -0500 From: Fred Yankowski To: cygwin AT cygwin DOT com, Pgsql-Cygwin Subject: Re: SIGTERM does not stop backend postgres processes immediately Message-ID: <20010515110455.A32144@enteract.com> References: <20010515112054 DOT G31266 AT cygbert DOT vinschen DOT de> <20010515101036 DOT D321 AT dothill DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010515101036.D321@dothill.com>; from Jason.Tishler@dothill.com on Tue, May 15, 2001 at 10:10:36AM -0400 On Tue, May 15, 2001 at 10:10:36AM -0400, Jason Tishler wrote: > I just tried my Cygwin PostgreSQL 7.1.1 distribution against the latest > Cygwin CVS and the above mentioned patch solves the postmaster shutdown > problem. Now Cygwin PostgreSQL behaves identical to UNIX PostgreSQL > with regard to shutdown: Wow, this is great! It's a pleasure to see capable Cygwin developers -- Corinna and Jason in particular, along with the others who posted suggested ways to fix the problem -- dig in and solve problems. > Your patch fixed case 2 above and I believe this is the last piece needed > by Fred Yankowski to complete his PostgreSQL NT service patch. I will resume work on that immediately. The other problem I've been facing is how to handle the SIGHUP that Cgywin generates in response to system shutdown. Some quick tests show that simply ignoring (SIG_IGN) the signal works, but that defeats the use of SIGHUP to force the instance to re-read the configuration file. It may be, however, that fixing the recv() problem also fixes the problem where getting a SIGHUP in the midst of stopping PostgreSQL seemed to mess up the PostgreSQL state. I'll check... -- Fred Yankowski fred AT OntoSys DOT com tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple