Re: pgsql: Implement error checking for pthreads calls in thread-safe mode.
В списке pgsql-committers по дате отправления:
| От | Gregory Stark |
|---|---|
| Тема | Re: pgsql: Implement error checking for pthreads calls in thread-safe mode. |
| Дата | |
| Msg-id | 87hccxjh6h.fsf@oxford.xeocode.com обсуждение исходный текст |
| Ответ на | pgsql: Implement error checking for pthreads calls in thread-safe mode. (mha@postgresql.org (Magnus Hagander)) |
| Список | pgsql-committers |
"Magnus Hagander" <mha@postgresql.org> writes: > Log Message: > ----------- > Implement error checking for pthreads calls in thread-safe mode. They really > should always succeed, but in the likely event of a failure we would > previously fall through *without locking* - the new code will exit(1). > > Printing the error message on stderr will not work for all applications, but > it's better than nothing at all - and our API doesn't provide a way to return > the error to the caller. If you want to print an error I think you have to use write(2) here instead of fprintf. if pthread is cocked up then fprintf is going to have trouble locking the buffer. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's On-Demand Production Tuning
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера