bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stdlib self test: error: 'SIGTERM' undeclared


From: Simon Josefsson
Subject: Re: stdlib self test: error: 'SIGTERM' undeclared
Date: Sun, 26 Sep 2010 15:19:10 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Bruno Haible <address@hidden> writes:

>> We _could_ do this:
>> 
>> -/* The signal that terminated a process is not known posthum.  */
>> +/* The signal that terminated/stopped a process is not known posthum.  */
>>  # define WTERMSIG(x) SIGTERM
>> +# define WSTOPSIG(x) SIGSTOP
>>  
>> 
>> However SIGSTOP doesn't exist in MinGW headers so it will fail.
>
> There is no SIGSTOP in the mingw headers simply because there are no stopping
> signals on Woe32. We don't need to define fake one, since WIFSTOPPED always
> returns false. I'm applying this.
>
> Most systems define WSTOPSIG(x) as either (((x) >> 8) & 0x7f) or
> (((x) >> 8) & 0xff). Since the stopping signal values are all below < 32,
> both formulas return the same value, assuming bit 15 has not been used for
> another purpose.
>
>
> 2010-09-26  Bruno Haible  <address@hidden>
>
>       sys_wait: Implement WSTOPSIG.
>       * lib/sys_wait.in.h (WSTOPSIG): New macro.
>       Reported by Simon Josefsson.

Excellent, thank you.  It works fine here.

/Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]