Re: SIGTERM does not stop backend postgres processes immediately

From: Fred Yankowski <fred(at)ontosys(dot)com>
To: cygwin(at)cygwin(dot)com, Pgsql-Cygwin <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: SIGTERM does not stop backend postgres processes immediately
Date: 2001-05-15 16:04:55
Message-ID: 20010515110455.A32144@enteract.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

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

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message Henshall, Stuart - WCP 2001-05-15 16:16:17 RE: Postgres server on Windows 98
Previous Message Jason Tishler 2001-05-15 14:39:37 Re: Postgres server on Windows 98