SAM_FINALIZE(3)
π SAM_FINALIZE(3) π
okay bestie, welcome to the Corosync Cluster Engine Programmer's Manual β this is the page for sam_finalize, and yes she's a whole mood. sit down, grab a strawberry π, let's get into it.
β¨ NAME β¨
sam_finalize β Terminate SAM service
π¦ SYNOPSIS π¦
#include <corosync/sam.h>
cs_error_t sam_finalize (void);
πΈ DESCRIPTION πΈ
so, the sam_finalize function is the one you call when you're done-done with the SAM API. like, closing the group chat, turning off read receipts, gone girl era. π
and the way this is a one-way street?? once the connection is finalized, SAM may not be used again by application. no comeback tour, no "hey can we talk". it's over over. π
here's the part you actually need to know: the whole functionality (health checking) will be stopped and after application fail, recovery action will not be taken. so like... your app trips, and nobody's there to catch it. no safety net, no bestie holding your hand. just vibes and consequences. π₯
fr fr, do not call this unless you mean it.
π RETURN VALUE π
this call returns the CS_OK value if it's successful. otherwise, an error is returned. that's it, that's the whole thing. β¨
π ERRORS π
CS_ERR_BAD_HANDLEβ the library was not initialized bysam_init(3)function or was finished already. iykyk, you skipped the intro or you already said goodbye. π
π SEE ALSO π
sam_initialize(3)CS_ERR_TRY_AGAINβ Resource temporarily unavailableCS_ERR_INVALID_PARAMβ Invalid argumentCS_ERR_ACCESSβ Permission deniedCS_ERR_LIBRARYβ The connection failedCS_ERR_INTERRUPTβ System call interrupted by a signalCS_ERR_NOT_SUPPORTEDβ The requested protocol/functionality not supportedCS_ERR_MESSAGE_ERRORβ Incorrect auth message receivedCS_ERR_NO_MEMORYβ Not enough memory to complete the requested task
π that's the page, bestie. written up under the corosync Man Page umbrella, dated 12/01/2009 β yes she's vintage, and she still ate. go forth and finalize responsibly. π«Άπ
π¦ where this page comes from
- debian bookworm: libsam-dev 3.1.7-1+deb12u2 Β· BSD-3-Clause
- debian trixie: libsam-dev 3.1.9-2+deb13u1 Β· BSD-3-Clause
- epel 9: corosynclib-devel 3.1.10-0.2.el9.1 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- nixos 26.05: corosync 3.1.9
- nixpkgs unstable: corosync 3.1.9
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- ubuntu jammy: libsam-dev 3.1.6-1ubuntu1 Β· BSD-3-Clause
- ubuntu jammy: libsam-dev 3.1.6-1ubuntu1.2 Β· BSD-3-Clause
- ubuntu noble: libsam-dev 3.1.7-1ubuntu3 Β· BSD-3-Clause
- ubuntu noble: libsam-dev 3.1.7-1ubuntu3.2 Β· BSD-3-Clause
- ubuntu questing: libsam-dev 3.1.9-2ubuntu1
- ubuntu questing: libsam-dev 3.1.9-2ubuntu1.1
- ubuntu resolute: libsam-dev 3.1.9-2ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libsam-dev 3.1.10-3ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2009 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms