Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8fPT-0006BQ-5V for pgsql-committers@arkaria.postgresql.org; Fri, 03 Jun 2016 03:04:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b8fPS-0007JY-Kq for pgsql-committers@arkaria.postgresql.org; Fri, 03 Jun 2016 03:04:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b8fPR-0007Is-Vg for pgsql-committers@postgresql.org; Fri, 03 Jun 2016 03:04:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b8fPL-0000lQ-OF for pgsql-committers@postgresql.org; Fri, 03 Jun 2016 03:04:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5334LSD004490; Thu, 2 Jun 2016 23:04:21 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Redesign handling of SIGTERM/control-C in parallel pg_dump/pg_re In-reply-to: <025c409f-f70f-9a3c-c4e2-4d606378326c@2ndquadrant.com> References: <025c409f-f70f-9a3c-c4e2-4d606378326c@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Thu, 02 Jun 2016 22:56:27 -0400" Date: Thu, 02 Jun 2016 23:04:21 -0400 Message-ID: <4489.1464923061@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Peter Eisentraut 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