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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: [PATCHES] win32 signals, part 5


  • From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
  • To: "Magnus Hagander" <mha(at)sollentuna(dot)net>, "Neil Conway" <neilc(at)samurai(dot)com>
  • Cc: <pgsql-patches(at)postgresql(dot)org>, "pgsql-hackers-win32" <pgsql-hackers-win32(at)postgresql(dot)org>
  • Subject: Re: [PATCHES] win32 signals, part 5
  • Date: Sun, 8 Feb 2004 22:32:39 +0100
  • Message-id: <6BCB9D8A16AC4241919521715F4D8BCE34B16F(at)algol(dot)sollentuna(dot)se>

Actually, it seems I forgot to attach the actual patch *again*. Sheesh.
Here goes.

//Magnus

 

>Here's the new one. Turns out I had already fixed the one part 
>I thought
>I still had, so it was already ready.
>
>Changes since last patch:
>
>1) Error messages in pgwin32_signal_initialize() are now all using
>ereport(). (Previously used fprintf to stderr, but I realised that this
>function executes on the main thread and can thus use ereport). The
>error for SetConsoleCtrlHandler() is now FATAL, per suggestion from
>Claudio.
>
>2) Redefines CHECK_FOR_INTERRUPTS() on Win32 only, to include a call to
>WaitForSingleObjectEx(). This allows our signals to be delivered just
>before we check for their result. WIth this change, query cancel now
>works fine on win32. It's also possible to do an "administrator
>shutdown" on a backend that is running a query (previously 
>only possible
>when the backend was idle)
>
>
>The rest is identical to patch _4.
>
>//Magnus
>
>---------------------------(end of 
>broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to 
>majordomo(at)postgresql(dot)org
>

Attachment: win32_signals_5.patch
Description: win32_signals_5.patch



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group