[Openais] [PATCH][corosync] Return CS_ERR_INTERRUPT to library users

Chrissie Caulfield ccaulfie at redhat.com
Thu Jun 25 02:03:30 PDT 2009


Currently coroipcc detects EINTR returns from poll() etc and simply
retries the operation without informing the clients.

I think the clients need to know a signal has been detected. Many
daemons trap SIGINT to help them shutdown cleanly, and this used to
work. Now they get the signal delivered but calls like quorum_dispatch()
do not return so they can't tidy up and close down.

This patch changes the behaviour so that if EINTR is detected it is
passed back to the clients as CS_ERR_INTERRUPT. The clients can then
retry the operation or exit as they see fit.

-- 

Chrissie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipc_inter.patch
Type: text/x-patch
Size: 2132 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20090625/d12b0a03/attachment-0001.bin 


More information about the Openais mailing list