GNU bug report logs - #9076
coreutils-8.12 uses SA_RESETHAND and SA_RESTART unconditionally

Previous Next

Package: coreutils;

Reported by: "Joachim Schmitz" <jojo <at> schmitz-digital.de>

Date: Thu, 14 Jul 2011 06:56:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, Eric Blake <eblake <at> redhat.com>
Cc: 9076 <at> debbugs.gnu.org, Joachim Schmitz <jojo <at> schmitz-digital.de>, Bug-gnulib <bug-gnulib <at> gnu.org>
Subject: bug#9076: coreutils-8.12 uses SA_RESETHAND and SA_RESTART	unconditionally
Date: Wed, 20 Jul 2011 11:10:30 +0100
On 16/07/11 01:51, Paul Eggert wrote:
> On 07/15/11 03:28, Pádraig Brady wrote:
>> What I was getting was that it's probably better to leave
>> the following to the app too:
>>
>> #ifndef SA_RESETHAND
>> # define SA_RESETHAND 0
>> /* Now the app writer knows they need to handle this case */
>> #endif
> 
> Yes, you're probably right.  I'll send some patches along
> those lines shortly (but not to bug-gnulib since that's not
> relevant to these coreutils-specific patches).

I notice that make syntax-check is now failing in coreutils.

 src/dd.c:# define SA_RESETHAND 0
 src/ls.c:# define SA_RESTART 0
 src/timeout.c:# define SA_RESTART 0
 maint.mk: define the above via some gnulib .h file
 make: *** [sc_prohibit_always-defined_macros] Error 1

This is because those are defined in signal.h.in which were
added as part of cfb3906f to add sigaction support to mingw.

Eric do you think we should define those in gnulib?
My thinking was that the onus should be on the apps
to #define these, as otherwise it's too easy for
compiles to just proceed on a platform while ignoring
requested operations.

cheers,
Pádraig.




This bug report was last modified 13 years and 360 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.