[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: abort() on Windows 2008 Server
From: |
Eric Blake |
Subject: |
Re: abort() on Windows 2008 Server |
Date: |
Mon, 20 Oct 2008 05:45:04 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bruno Haible on 10/18/2008 3:37 PM:
>
> Thanks for this analysis. The sigset_t datatype introduced by gnulib has
> to be adjusted. I propose this patch. Eric, what do you think?
Generally looks okay to me.
> int
> sigfillset (sigset_t *set)
> {
> ! *set = ((2U << (NSIG - 1)) - 1)
> ! #ifdef SIGABRT_COMPAT
> ! & ~(1U << SIGABRT_COMPAT)
> ! #endif
> ! ;
However, I'm not the biggest fan of #ifdef inside a statement. Maybe a
helper macro would make this read a bit cleaner:
#ifdef SIGABRT_COMPAT
# define SIGFILLMASK (~(1U << SIGABRT_COMPAT))
#else
# define SIGFILLMASK (~0U)
#endif
int
sigfillset (sigset_t *set)
{
*set = ((2U << (NSIG - 1)) - 1) & SIGFILLMASK;
return 0;
}
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkj8bz8ACgkQ84KuGfSFAYBPOQCglTUcA1NV/k9UqVrO25cbqrQN
+aEAnReEPEmsvkD4kHXVzdZf+45da7e2
=6/kE
-----END PGP SIGNATURE-----