delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/12/02:46:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39E55E61.47268811@tpf.co.jp>
Date: Thu, 12 Oct 2000 15:46:57 +0900
From: Hiroshi Inoue <Inoue AT tpf DOT co DOT jp>
X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U)
X-Accept-Language: ja
MIME-Version: 1.0
To: cygwin AT sources DOT redhat DOT com
Subject: Re: signals while reading
References: <39E52FEA DOT 9EF500CA AT tpf DOT co DOT jp> <20001011232901 DOT A15742 AT cygnus DOT com>


Chris Faylor wrote:

> 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        <stdio.h>
> >#include        <signal.h>
> >#include        <errno.h>
> >
> >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.

Do other APIs have the same bug in 1.1.4 ?

Regards.
Hiroshi Inoue




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019