Re: [RFC,PATCH] SIGPIPE masking in local socket connections - Mailing list pgsql-hackers

From Jeremy Kerr
Subject Re: [RFC,PATCH] SIGPIPE masking in local socket connections
Date
Msg-id 200906030036.07118.jk@ozlabs.org
Whole thread Raw
In response to Re: [RFC,PATCH] SIGPIPE masking in local socket connections  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [RFC,PATCH] SIGPIPE masking in local socket connections  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom,

> A feature that is exercised via setsockopt is probably fairly safe,
> since you can check for failure of the setsockopt call and then do
> it the old way.  MSG_NOSIGNAL is a recv() flag, no?

It's a flag to send().

> The question is whether you could expect that the recv() would fail if
> it had any unrecognized flags.  Not sure if I trust that. SO_NOSIGPIPE
> seems safer.

Yep, a once-off test would be better. However, I don't seem to have a 
NOSIGPIPE sockopt here :(

Cheers,


Jeremy


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_migrator and making columns invisible
Next
From: Tom Lane
Date:
Subject: Re: explain analyze rows=%.0f