[Openais] [openais whitetank] cleanup semaphores in some shutdown operations
Steven Dake
sdake at redhat.com
Wed Jun 17 21:00:28 PDT 2009
third party service engines may want to shutdown the system cleanly.
Currently they may exit which does not release semaphores or shared
memory. Also other parts of openais may shutdown which results in these
same leaks.
This patch formalizes the shutdown method to call the api
openais_shutdown (int error_code). This will properly clean up the ipc
system and other parts of the system.
If a third party wants to use user defined shutdown strings, the strings
are registered via
openais_shutdown_errorstring_register (int errorcode, char *string).
The errorcodes start at the define OPENAIS_SHUTDOWN_ERRORCODES_START.
64-80 are reserved for cman currently.
Regards
-steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shutdown-fix.patch
Type: text/x-patch
Size: 9986 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20090617/76569828/attachment.bin
More information about the Openais
mailing list