Win32 signals patch #2

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "pgsql-hackers-win32" <pgsql-hackers-win32(at)postgresql(dot)org>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Win32 signals patch #2
Date: 2004-02-02 21:35:02
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE34B0D8@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-patches

Hello!

Here's step #2 in win32 signals handling, containing the following:

1) Per discussion with Bruce, reverts the change from kill() to pqkill()
on all platforms. Instead, #define away kill() to pqkill() in
port/win32.h, and just use kill() directly on unix platforms. Similar
changes for pqsigsetmask, except they are all local to pqsignal.h.

2) Implements pqselect() in similar ways. This function appears just as
select() to the user. Internally, it runs a loop where it polls for
signals once / second. This allows the backend to actually shut down,
since we can deliver signals to both postmaster and statistics
processes. Ordinary backends cannot yet be shut down, since they don't
use select, but a blocking recv() instead. I'll get to those soon...

//Magnus

Attachment Content-Type Size
select.c application/octet-stream 1.6 KB
win32_signals_2.patch application/octet-stream 9.4 KB

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Bruce Momjian 2004-02-02 21:48:26 Re: [pgsql-hackers-win32] Proposed dirmod.c fix for Win32
Previous Message Steve Tibbett 2004-02-02 21:26:02 Re: [HACKERS] What's left?

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-02-02 21:48:26 Re: [pgsql-hackers-win32] Proposed dirmod.c fix for Win32
Previous Message Neil Conway 2004-02-02 21:30:43 Re: fix memcpy() overlap