Bruno Haible <br...@clisp.org> 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  <br...@clisp.org>
>
>       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