Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE'

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE'
Дата
Msg-id 30820.1566397711@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-bugs
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> I guess the other possibility is that there exists an operating system
> that returns file descriptors higher than its FD_SETSIZE, when some fds
> below FD_SETSIZE are still available.  Doesn't seem realistic.

I think POSIX requires open() to select the lowest unused FD.  Otherwise
tricks like closing and reopening stdout wouldn't work reliably.

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'