Re: dup(0) failed after 3195 successes: Bad file descriptor

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dup(0) failed after 3195 successes: Bad file descriptor
Date: 2004-06-29 17:23:25
Message-ID: 20040629172325.10113.qmail@web52901.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers-win32

--- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> CSN <cool_screen_name90001(at)yahoo(dot)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"?
>
> This is coming from
>
> thisfd = dup(0);
> if (thisfd < 0)
> {
> /* Expect EMFILE or ENFILE, else it's
> fishy */
> if (errno != EMFILE && errno != ENFILE)
> elog(WARNING, "dup(0) failed after
> %d successes: %m", used);
> break;
> }
>
> I would suppose there is another EXXX code we have
> to allow to pass
> without comment, but I don't know from your report
> what it is.

It's on windows xp home edition. I just upgraded
cygwin and postgresql to 7.4.3 - the warning didn't
appear in the log previously.

CSN



__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Maldonado 2004-06-29 18:01:51 query failing with out of memory error message.
Previous Message Scott Marlowe 2004-06-29 17:13:42 Re: A few beginner's questions concerning concurrency

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Merlin Moncure 2004-06-29 17:39:32 Re: backslash commands under win32
Previous Message Tom Lane 2004-06-29 14:10:18 Re: dup(0) failed after 3195 successes: Bad file descriptor