[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] bug#31218: bug#31218: kill() not wrapped with HAVE_WORKI
From: |
Burton, Ross |
Subject: |
[bug-diffutils] bug#31218: 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 <address@hidden> 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?
>