X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <94b5b62d0910080101o423e397fg25da7ce382504634@mail.gmail.com> References: <94b5b62d0910072010u50e1ab55m55de9d795614d303 AT mail DOT gmail DOT com> <4ACD5B9F DOT 8030700 AT cygwin DOT com> <94b5b62d0910072119i31175fft90fba12577e1e914 AT mail DOT gmail DOT com> <94b5b62d0910080101o423e397fg25da7ce382504634 AT mail DOT gmail DOT com> Date: Thu, 8 Oct 2009 05:53:47 -0300 Message-ID: <94b5b62d0910080153ubd85376x158a7b122d4d6431@mail.gmail.com> Subject: Re: SIGINT default behavior From: Pedro Izecksohn To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I, Pedro Izecksohn wrote: > Robert Pendell wrote: >> >> I was unable to reproduce this bug on 1.7. =C2=A0Compiled using GCC 4.3.4 >> on 1.7.0-62. =C2=A0Gave exit code 130 every time. =C2=A0I used your test= case to >> do the test. > > =C2=A0May be I did not express myself well: > > =C2=A0When ctrl c is pressed, it always give exit code 130. The > inconsistencies are ferror (stdin) and perror behaviors. What I understand as a bug is: fgets should not return after SIG_DFL caught SIGINT. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple