Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-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

pgsql-hackers-win32 by date

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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group