pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Redesign handling of SIGTERM/control-C in parallel pg_dump/pg_re
Date: Thu, 02 Jun 2016 23:04:21 -0400
Message-ID: <4489.1464923061@sss.pgh.pa.us> (raw)
In-Reply-To: <025c409f-f70f-9a3c-c4e2-4d606378326c@2ndquadrant.com>
References: <E1b8WQ4-0007EK-O9@gemulon.postgresql.org>
	<025c409f-f70f-9a3c-c4e2-4d606378326c@2ndquadrant.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 6/2/16 1:28 PM, Tom Lane wrote:
>> Redesign handling of SIGTERM/control-C in parallel pg_dump/pg_restore.

> These changes introduced several new compiler warnings under fortify rules:

> parallel.c: In function ‘sigTermHandler’:
> parallel.c:556:9: warning: ignoring return value of ‘write’, declared 
> with attribute warn_unused_result [-Wunused-result]

Hm, interesting --- I copied that write_stderr() macro from psql/common.c
and figured it was good.  But now that I look, only the uses of it in the
Windows code path there are straightforward; on the Unix side we have

            rc = write_stderr("Cancel request sent\n");
            (void) rc;            /* ignore errors, nothing we can do here */

which evidently was done to shut up exactly this type of overly-nannyish
warning.  I'm thinking we need to hide that dead-chicken-waving in the
macro itself.  Will deal with it tomorrow.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (6+ messages)

Message-ID: <4489.1464923061@sss.pgh.pa.us>
Permalink:  ../4489.1464923061@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4489.1464923061@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
  Subject: Re: pgsql: Redesign handling of SIGTERM/control-C in parallel pg_dump/pg_re
  In-Reply-To: <4489.1464923061@sss.pgh.pa.us>
  References: <E1b8WQ4-0007EK-O9@gemulon.postgresql.org> <025c409f-f70f-9a3c-c4e2-4d606378326c@2ndquadrant.com> <4489.1464923061@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox