Re: BUG #2371: database crashes with semctl failed error

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: BUG #2371: database crashes with semctl failed error
Дата
Msg-id e10a3h$1s84$1@news.hub.org
обсуждение исходный текст
Ответ на BUG #2371: database crashes with semctl failed error  ("Brock Peabody" <brock.peabody@npcinternational.com>)
Ответы Re: BUG #2371: database crashes with semctl failed error  ("Brock Peabody" <brock.peabody@npcinternational.com>)
Re: BUG #2371: database crashes with semctl failed error  ("Brock Peabody" <brock.peabody@npcinternational.com>)
Список pgsql-bugs
""Brock Peabody"" <brock.peabody@npcinternational.com> wrote
>
> FATAL:  semctl(167894456, 4, SETVAL, 0) failed: A non-blocking socket
> operation could not be completed immediately.
>

Can you reliablly reproduce the problem? If so, we may come up with a
testing patch to it. We encounter similar problems before but it is hard to
reproduce.

Magnus? As Bruce suggested, we can plug in a check-EINTR-loop here in
semctl():

   /* Quickly lock/unlock the semaphore (if we can) */
   if (semop(semId, &sops, 1) < 0)
    return -1;

Regards,
Qingqing

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

Предыдущее
От: 维 姜
Дата:
Сообщение: contrib/intarray/_int_gist.c
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: contrib/intarray/_int_gist.c