Why PG_SETMASK() change errno to 0 when there is an elog() callbefore or after it? Is it a bug?

Поиск
Список
Период
Сортировка
От CNG L
Тема Why PG_SETMASK() change errno to 0 when there is an elog() callbefore or after it? Is it a bug?
Дата
Msg-id CAJ3ejTyRrZZq_Wt0aRnCQbf162SxXNuxRYhYHuhY4g9_A09jYw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Why PG_SETMASK() change errno to 0 when there is an elog() callbefore or after it? Is it a bug?  (Andres Freund <andres@anarazel.de>)
Список pgsql-bugs
In founction ServerLoop() in code postmaster.c, after select(), we called PG_SETMASK(). If l add an elog() after PG_SETMASK(), I see errno is reset to 0 when PG_SETMASK() call suceeded. But the immediately code will actually check errno from the select() call which now has been overwritten by PG_SETMASK(). 

Can someone share some light on this?

Thanks
Congnan

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

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: psql and readline comments
Следующее
От: "钱学斌"
Дата:
Сообщение: pgsql bug