Thread: Re: [COMMITTERS] pgsql: Move pqsignal() to libpgport.

Re: [COMMITTERS] pgsql: Move pqsignal() to libpgport.

From
Guillaume Lelarge
Date:
On Sun, 2013-03-17 at 16:06 +0000, Tom Lane wrote:
> Move pqsignal() to libpgport.
>
> We had two copies of this function in the backend and libpq, which was
> already pretty bogus, but it turns out that we need it in some other
> programs that don't use libpq (such as pg_test_fsync).  So put it where
> it probably should have been all along.  The signal-mask-initialization
> support in src/backend/libpq/pqsignal.c stays where it is, though, since
> we only need that in the backend.
>

Hi,

When I try to compile HEAD right after this commit, I have this issue
with pg_receivexlog:

pg_receivexlog.c: In function ‘main’:
pg_receivexlog.c:425:11: error: ‘SIGINT’ undeclared (first use in this
function)
pg_receivexlog.c:425:11: note: each undeclared identifier is reported
only once for each function it appears in

The attached patch fixes this. Not sure it's the right fix though...


--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

Attachment

Re: [COMMITTERS] pgsql: Move pqsignal() to libpgport.

From
Tom Lane
Date:
Guillaume Lelarge <guillaume@lelarge.info> writes:
> On Sun, 2013-03-17 at 16:06 +0000, Tom Lane wrote:
>> Move pqsignal() to libpgport.

> When I try to compile HEAD right after this commit, I have this issue
> with pg_receivexlog:

Oddly, I didn't see that on the machine I was testing on --- it must
have something else pulling in <signal.h> there.  Fixed.
        regards, tom lane



Re: [COMMITTERS] pgsql: Move pqsignal() to libpgport.

From
Guillaume Lelarge
Date:
On Sun, 2013-03-17 at 14:13 -0400, Tom Lane wrote:
> Guillaume Lelarge <guillaume@lelarge.info> writes:
> > On Sun, 2013-03-17 at 16:06 +0000, Tom Lane wrote:
> >> Move pqsignal() to libpgport.
> 
> > When I try to compile HEAD right after this commit, I have this issue
> > with pg_receivexlog:
> 
> Oddly, I didn't see that on the machine I was testing on --- it must
> have something else pulling in <signal.h> there.  Fixed.
> 

Thanks.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com