From: cgf@cygnus.com (Christopher G. Faylor)
Subject: Re: SIGINT pending no matter what!
25 Jun 1998 15:08:00 GMT
Message-ID: <6mtp4g$8ss$1@cronkite.cygnus.com>
References: <TFSLFBTO.cygnus.gnu-win32@armature.com>
X-Newsreader: trn 4.0-test63 (15 March 1998)

In article <TFSLFBTO.cygnus.gnu-win32@armature.com>,
Robin Crampton <rcrampton@armature.com> wrote:
>The program below produces the following output:
>
> $ ./a
> Interrupt!
> Done.
> $
>
>pending_signals is set to 4 (reading the sigismember() sources and   
>sys/signal.h, this is SIGINT) whether I touch the keyboard or not.

It's a bug in sigpending () which I introduced a while ago.  The fix is
very simple but unfortunately there is no workaround -- you have to
rebuild cygwin32.  The change will be in the next release of Cygwin32.
-- 
cgf@cygnus.com             "Everything has a boolean value, if you stand
http://www.cygnus.com/      far enough away from it."  -- Galena Alyson Canada
