bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] new module 'sigprocmask'


From: Bruno Haible
Subject: Re: [bug-gnulib] new module 'sigprocmask'
Date: Mon, 16 Oct 2006 14:52:05 +0200
User-agent: KMail/1.9.1

Paul Eggert wrote:
> > + /* 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.

You're right on both. Thanks. I've fixed these and added the module.

> 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.

There shouldn't be more race conditions on Woe32 than on Unix: On both kinds
of systems, the signal handlers are run in the main thread, not in a separate
thread.

Bruno




reply via email to

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