Re: APC/socket fix (final?)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: APC/socket fix (final?)
Дата
Msg-id 12873.1080236785@sss.pgh.pa.us
обсуждение исходный текст
Ответ на APC/socket fix (final?)  (Claudio Natoli <claudio.natoli@memetrics.com>)
Список pgsql-patches
Claudio Natoli <claudio.natoli@memetrics.com> writes:
> + #ifdef WIN32
> +     /* Interrupted by socket/APC interaction? */
> +     if (n < 0 && GetLastError() == ERROR_IO_PENDING)
> +         errno = EINTR;
> + #endif

This seems a bit schizophrenic; if you can assign to errno, why can't you
read from it?  Would look more consistent if the code looked like

    if (n < 0 && errno == ERROR_IO_PENDING)
        errno = EINTR;

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: installdir patch for win32
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: installdir patch for win32