Cygwin PostgreSQL shutdown handling (was Re: Make Cygwin damons easier to use on Win9x.)

From: Jason Tishler <jason(at)tishler(dot)net>
To: cygwin-patches(at)cygwin(dot)com
Cc: Pgsql-Cygwin <pgsql-cygwin(at)postgresql(dot)org>
Subject: Cygwin PostgreSQL shutdown handling (was Re: Make Cygwin damons easier to use on Win9x.)
Date: 2001-07-26 16:45:35
Message-ID: 20010726124535.K439@dothill.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

On Wed, Jul 25, 2001 at 05:51:26PM -0400, Christopher Faylor wrote:
> On Thu, Jul 12, 2001 at 12:39:13AM +0900, Kazuhiro Fujieda wrote:
> >I had enjoyed my daemon patch for a while. I found detaching
> >the console worked fine and cause no undesirable side effect,
> >while the ctrl_c_handler caused an undesirable effect.
> >It terminated Cygwin processes running as services on NT/2000
> >when an user logged off. So I fixed it.
>
> Anyway, I've applied this patch. I was a little reluctant to change the
> behavior of the CTRL_SHUTDOWN_EVENT since it has been like this for some
> time.

This portion of Kazuhiro's patch obviates the following patch:

http://www.cygwin.com/ml/cygwin-patches/2001-q3/msg00024.html

I installed the 2001-Jul-25 snapshot and verified that PostgreSQL
shutdowns cleanly and restarts without manual invention when NT reboots.
And there was much rejoicing by Cygwin PostgreSQL users until...

Although this is most likely unrelated to this patch and caused by
something else in this snapshot, I am seeing the following error messages
when using PostgreSQL:

23606 [main] postmaster 280 close_handle: closing protected handle void sigproc_init ():552(signal_arrived<0x1C0>)
76914 [main] postmaster 280 close_handle: by void fhandler_socket::close_secret_event ():122(secret_event<0x1C0>)
pq_recvbuf: recv() failed: Not owner

I will try to track down the above and provide more details and/or
a patch. But, I thought it better to report the issue instead of
withholding it until I had a chance to work on it.

Thanks,
Jason

--
Jason Tishler
Director, Software Engineering Phone: 732.264.8770 x235
Dot Hill Systems Corp. Fax: 732.264.8798
82 Bethany Road, Suite 7 Email: Jason(dot)Tishler(at)dothill(dot)com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Christopher Faylor 2001-07-26 19:40:34 Re: Cygwin PostgreSQL shutdown handling (was Re: Make Cygwin damons easier to use on Win9x.)
Previous Message Henshall, Stuart - WCP 2001-07-26 14:59:40 RE: postgresql on win2000