[Openais] [PATCH] [corosync trunk] Fix CFG shutdown

Chrissie Caulfield ccaulfie at redhat.com
Fri Feb 27 03:30:46 PST 2009


The IPC patch broke CFG shutdown in several places, this patches fixes
all of them.

In particular, cfg_try_shutdown asks all applications that are
registered for callbacks if they approve the shutdown. This caused a bit
of a re-entrancy problem because it also asked the process that called
for the shutdown! The patch causes cfg to only ask OTHER applications in
the assumption that any application that calls
corosync_cfg_tryshutdown() will approve of the action :-)

In addition it adds the response to cfg_replyto_shutdown which was
missing (it couldn't be used with the old system but it mandatory now),
and removes a double-free in the library finalise code.

Chrissie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfg-fix.patch
Type: text/x-patch
Size: 1565 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20090227/b5ab9345/attachment.bin 


More information about the Openais mailing list