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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: dup(0) failed after 3195 successes: Bad file descriptor
Дата
Msg-id 28875.1088518218@sss.pgh.pa.us
обсуждение исходный текст
Ответ на dup(0) failed after 3195 successes: Bad file descriptor  (CSN <cool_screen_name90001@yahoo.com>)
Ответы Re: dup(0) failed after 3195 successes: Bad file descriptor  (Martijn van Oosterhout <kleptog@svana.org>)
Re: dup(0) failed after 3195 successes: Bad file descriptor  (CSN <cool_screen_name90001@yahoo.com>)
Список pgsql-general
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"?

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

В списке pgsql-general по дате отправления:

Предыдущее
От: Alexander Cohen
Дата:
Сообщение: column contsraints
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Performance problem on RH7.1