Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Hiroshi Inoue" To: Cc: Subject: RE: signals while reading Date: Sun, 15 Oct 2000 22:55:11 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <20001011232901.A15742@cygnus.com> Importance: Normal > -----Original Message----- > From: Chris Faylor > > On Thu, Oct 12, 2000 at 12:28:43PM +0900, Hiroshi Inoue wrote: > >Hi all, > > > >I tried the following program on my machine. > >( CYGWIN_NT-5.0 1.1.4(0.26/3/2) 2000-08-03 20:53 win2k) > > > >#include > >#include > >#include > > > >void sigfunc(int sig) > >{ > > fprintf(stderr, "received signal=%d\n", sig); > > exit(1); > >} > >main() > >{ > > char rdt[8]; > > > > signal(SIGTERM, sigfunc); > > while (1) > > { > > fprintf(stderr,"read wait -> "); > > read(0, rdt, 1); > > fprintf(stderr,"read return %d\n", errno); > > if (errno != EINTR) > > break; > > } > >} > > > >When I kill this program, I see the following. > > > >read wait -> read return 4 > >read wait -> read return 4 > >read wait -> read return 4 > >........ > >(inifinite loop) > > > >Is this a expected behavior ? > >Note that sigfunc() isn't called. > > It's a bug in 1.1.4. > Already fixed ? Seems it still exists in current snapshot. Regards. Hiroshi Inoue -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com