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

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dup(0) failed after 3195 successes: Bad file descriptor
Date: 2004-06-29 14:10:18
Message-ID: 28875.1088518218@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers-win32
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.

			regards, tom lane

In response to

Responses

pgsql-hackers-win32 by date

Next:From: CSNDate: 2004-06-29 17:23:25
Subject: Re: dup(0) failed after 3195 successes: Bad file descriptor
Previous:From: Anass HAMMEDIDate: 2004-06-29 09:45:46
Subject: session time

pgsql-general by date

Next:From: Bruno Wolff IIIDate: 2004-06-29 14:17:56
Subject: Re: A few beginner's questions concerning concurrency control
Previous:From: Tom LaneDate: 2004-06-29 14:04:14
Subject: Re: A few beginner's questions concerning concurrency control

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