bug-gnulib
[Top][All Lists]
Advanced

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

Re: new module 'sigprocmask'


From: Paul Eggert
Subject: Re: new module 'sigprocmask'
Date: Fri, 13 Oct 2006 11:53:11 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

> + /* Set of currently blocked and pending signals.  */
> + static volatile char pending_array[NSIG] /* = { 0 } */;

Surely this should be sig_atomic_t rather than char?

> + int
> + sigfillset (sigset_t *set)
> + {
> +   *set = -2U << (NSIG - 1);

This doesn't look right to me, as it clears the set.

I'm not a Windows expert, so I'm not sure how well the race conditions
will work out, but I assume that is a known issue.




reply via email to

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