| От | Tom Lane |
|---|---|
| Тема | Re: statistics process shutting down |
| Дата | |
| Msg-id | 24231.1101847504@sss.pgh.pa.us обсуждение |
| Ответ на | Re: statistics process shutting down ("Merlin Moncure" <merlin.moncure@rcsonline.com>) |
| Список | pgsql-hackers-win32 |
"Merlin Moncure" <merlin.moncure@rcsonline.com> writes:
> if (ret < 0)
> {
> int wsa_errno;
> wsa_errno = WSAGetLastError();
> if (WSAECONNRESET == wsa_errno)
> { /* EOF on the pipe! (win32 socket based implementation) */
> ret = 0;
> }
> else
> {
> errno = wsa_errno; /* this *might* be ok */
> }
> }
> Maybe Magnus might comment here. This doesn't explain why the read call
> is failing but I'm pretty sure the error code is not being properly
> returned.
I recall a lot of angst about whether the encoding of WSAGetLastError()
is compatible with errno values, but I forget what the conclusion was.
Can we just assign to errno like that, or do we need a mapping function?
regards, tom lane
В списке pgsql-hackers-win32 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера