GNU bug report logs - #31218
kill() not wrapped with HAVE_WORKING_FORK

Previous Next

Package: diffutils;

Reported by: "Burton, Ross" <ross.burton <at> intel.com>

Date: Thu, 19 Apr 2018 15:11:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


Message #11 received at 31218 <at> debbugs.gnu.org (full text, mbox):

From: "Burton, Ross" <ross.burton <at> intel.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 31218 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#31218: kill() not wrapped with
 HAVE_WORKING_FORK
Date: Fri, 20 Apr 2018 14:29:01 +0100
Yep, this compiles on mingw:

- kill (getpid (), s);
+ raise (s);

Ross

On 19 April 2018 at 22:38, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> On 04/19/2018 02:59 AM, Burton, Ross wrote:
>>
>> However, in checksigs() it isn't.  A simple fix to help build
>> diffutils under mingw (which doesn't have kill()) is:
>>
>> +--- a/src/sdiff.c
>> ++++ b/src/sdiff.c
>> +@@ -805,7 +805,9 @@
>> +
>> +       /* Yield an exit status indicating that a signal was received.  */
>> +       untrapsig (s);
>> ++#if HAVE_WORKING_FORK
>> +       kill (getpid (), s);
>> ++#endif
>
>
> How about using 'raise' instead?
>




This bug report was last modified 7 years and 94 days ago.

Previous Next


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