Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 1998 13:35:06 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Geoffrey Robinson <geoffr@globalserve.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Interrupted System Calls Infinite Loop
Message-ID:  <Pine.BSF.4.03.9810121323460.25080-100000@resnet.uoregon.edu>
In-Reply-To: <36211E00.DDFD2346@globalserve.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 11 Oct 1998, Geoffrey Robinson wrote:

> A friend of mine is working on a CGI that runs as many as 6 times a second
> and reads and writes to several files each time it runs. One file in
> particular that is opened with fopen() as read only is failing with errno
> EINTR. I looked up interrupted system calls in _Advanced Programming in the
> UNIX Environment_ by W. Richard Stevens who suggest handling the error by
> simply retrying the system call repeatedly until it succeeds.

I'd be intrigued to know why the syscall is being interrupted.  The
underlying open() is dying.  Are you using any wacky open flags?

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9810121323460.25080-100000>