Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args
Date
Msg-id 9837222c0908121024u218b8eb2n4274e9038b22ce3d@mail.gmail.com
Whole thread Raw
In response to Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
On Wed, Aug 12, 2009 at 19:08, Fujii Masao<masao.fujii@gmail.com> wrote:
> Hi,
>
> On Tue, Aug 11, 2009 at 3:10 AM, Magnus Hagander<magnus@hagander.net> wrote:
>> I have reproduced this. The problem is:
>>        (void) signal(SIGUSR1, sighandler);
>>        (void) signal(SIGINT, sighandler);      /* deprecated, use SIGUSR1 */
>>
>>
>> None of these signals exist on WIN32. I think the only reason it
>> compiles at all is that we bring in *some* of our signals emulation
>> code, but certainly not all of it.
>
> SIGINT has been used in pg_standby for a while (e.g., v8.3.7). I wonder
> why this problem arises only in v8.4.0.

Not sure. Potentially pure luck. SIGINT has never *worked*, though, it
just hasn't crashed.

-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Boszormenyi Zoltan
Date:
Subject: DECLARE doesn't set/reset sqlca after DECLARE cursor
Next
From: Markus Wanner
Date:
Subject: Re: "Hot standby"?