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

Re: 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: Re: Win32 signals patch #2
Date: 2004-02-02 22:36:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32pgsql-patches
Ehh, scratch that. That file had pqselect call itself..

Here is an updated version of select.c for backend/port/win32. The patch
stays the same.


>-----Original Message-----
>From: Magnus Hagander 
>Sent: den 2 februari 2004 22:35
>To: pgsql-hackers-win32
>Cc: pgsql-patches(at)postgresql(dot)org
>Subject: [pgsql-hackers-win32] Win32 signals patch #2
>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...

Attachment: select.c
Description: application/octet-stream (1.6 KB)

pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-02-02 22:40:27
Subject: Re: [PATCHES] log session end - again
Previous:From: Kurt RoeckxDate: 2004-02-02 22:22:47
Subject: Fix memcmp() with different sizes.

pgsql-hackers-win32 by date

Next:From: Greg StarkDate: 2004-02-02 22:43:07
Subject: Re: Sync vs. fsync during checkpoint
Previous:From: Andrew DunstanDate: 2004-02-02 22:11:47
Subject: Re: [HACKERS] What's left?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group