Re: dup(0) failed after 3195 successes: Bad file descriptor - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: dup(0) failed after 3195 successes: Bad file descriptor
Date
Msg-id 20040629214235.GC26381@svana.org
Whole thread Raw
In response to Re: dup(0) failed after 3195 successes: Bad file descriptor  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: dup(0) failed after 3195 successes: Bad file descriptor  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, Jun 29, 2004 at 10:10:18AM -0400, Tom Lane wrote:
> CSN <cool_screen_name90001@yahoo.com> writes:
> >  WARNING: dup(0) failed after 3195 successes: Bad file
> >  descriptor
>
> Hmm.  What system is this on?  What errno code corresponds to
> "Bad file descriptor"?

That would be EBADF I think. However, my linux manpage indicates it's
not a possible return from dup, only from dup2. Very odd.

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Connection gets into state where all queries fail
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Connection gets into state where all queries fail