Broken Pipe - Mailing list pgsql-interfaces

From Gregory W Burnham
Subject Broken Pipe
Date
Msg-id 006a01be65d0$91870320$3d063a8e@educ.sfu.ca
Whole thread Raw
List pgsql-interfaces
I'm using Postgres 6.3.2 (I know, I know 6.4.2 is out,
I'll upgrade as soon as this #$%&*! project is over)
running on RedHat 5.1.

I'm getting 'Broken Pipe' returned from the following snippet:
___________________________________________________
    if (idNum != 0){
    int lo_fd = 0;

    lo_fd = lo_open(conn, idNum, INV_READ);
    lo_read(conn, lo_fd, buffer, bufferSize);
    lo_close(conn, lo_fd);
    }

___________________________________________________

The pipe breaks in various places, but always in this
section.  This is part of a loop, and it seems to
always happen the 4th time through.  And yes, it's
with differant Oids.

Any ideas?  Solutions?  Cyanide?

Gregory W Burnham
Software Engineer
Excite Labs
Simon Fraser University
Vancouver, BC
V5A 1S6
604 291 3615 ph
604 291 5679 fx


pgsql-interfaces by date:

Previous
From: "Brett W. McCoy"
Date:
Subject: Re: [INTERFACES] Postgres to MS-Word? (Kind of off topic)
Next
From: Valerio Santinelli
Date:
Subject: Re: [INTERFACES] Foreign Keys