freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Steve Willer <willer AT novator.com>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: Re: [PATCH] goodread() fix *re-submitted*
- Date: Wed, 20 Mar 2002 13:29:19 -0500 (EST)
On Wed, 20 Mar 2002, James Cameron wrote:
> Steve Willer wrote:
> > In this patch, shouldn't the line:
> > if (thisgot <= 0) break;
> > actually be:
> > if (thisgot <= 0) return -1;
>
> That's exactly what I asked. ;-)
Ah.
Actually, when I thought about this a little further, I realized that you
might want to have retries on EINTR error conditions.This would allow you
to continue processing even if you've received unrelated SIGALRM signals,
or a SIGHUP in an Apache environment, etc.
if (thisgot == 0) return got;
if (thisgot < 0) {
if (errno == EINTR) return 0;
return -1;
}
-
[PATCH] goodread() fix *re-submitted*,
Steve Willer, 03/14/2002
- <Possible follow-up(s)>
- Re: [PATCH] goodread() fix *re-submitted*, James Cameron, 03/14/2002
- Re: [PATCH] goodread() fix *re-submitted*, Steve Willer, 03/18/2002
- Re: [PATCH] goodread() fix *re-submitted*, Brian Bruns, 03/18/2002
- Re: [PATCH] goodread() fix *re-submitted*, Steve Willer, 03/19/2002
- Re: [PATCH] goodread() fix *re-submitted*, James Cameron, 03/19/2002
- Re: [PATCH] goodread() fix *re-submitted*, Steve Willer, 03/20/2002
- Re: [PATCH] goodread() fix *re-submitted*, Brian Bruns, 03/20/2002
Archive powered by MHonArc 2.6.24.