CPG_FINALIZE(3)
π CPG_FINALIZE(3) π
okay bestie, gather round π«Ά this one lives in the Corosync Cluster Engine Programmer's Manual, section 3, and it's genuinely one of the shortest little icons in the whole CPG family. lowkey a palate cleanser. let's get into it β¨
πΈ NAME πΈ
cpg_finalize β terminate a connection to the CPG service π
that's it. that's the whole job. she's a goodbye girlie.
π¦ SYNOPSIS π¦
#include <corosync/cpg.h>
int cpg_finalize(cpg_handle_t handle);
like, copy that exactly, bestie, don't freestyle it π
β¨ DESCRIPTION β¨
so the cpg_finalize function is the one you call to close a connection to the closed process group API. it's the breakup text. it's the "we need to talk" but make it clean and mutual π
once the connection is finalized, the handle may not be used again by applications. β not "shouldn't", not "preferably not", may not. that handle is done. retired. she's moved to a different city and changed her number. if you keep passing it around, that's on you, and it will not go well π
also, and this is the part people forget: no more callbacks will be dispatched from the cpg_dispatch function. zero. none. the group chat is muted, archived, and you've left it. so don't sit there calling cpg_dispatch waiting for a callback that is never, ever coming, because that's giving "texting your ex at 3am" energy and it's not the move π
π RETURN VALUE π
- this call returns the
CS_OKvalue if it worked β¨ - otherwise, an error is returned π¬
π ERRORS π
the errors are undocumented. yeah. i know. i'm as upset as you are. no cap, there is literally nothing else here. π
π SEE ALSO π
the whole CPG cinematic universe, fr fr:
cpg_overview(3)cpg_initialize(3)cpg_finalize(3)cpg_fd_get(3)cpg_dispatch(3)cpg_join(3)cpg_leave(3)cpg_mcast_joined(3)cpg_membership_get(3)cpg_zcb_alloc(3)cpg_zcb_free(3)cpg_zcb_mcast_joined(3)cpg_context_get(3)cpg_context_set(3)cpg_local_get(3)
and then β and yes, these really are just hanging out at the bottom of SEE ALSO in the original, i'm not making this up π β the error codes, listed with their little one-liners:
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
tiny vibe check before you go: if you're looking for the actual list of errors cpg_finalize can throw, the ERRORS section up there said undocumented, so this list is just what's printed in the SEE ALSO block of the page. don't come for me, i'm only the messenger π«Ά
and that's the whole page, bestie!! π stay safe out there, finalize your handles, and never touch a dead one again. main character energy only π
this page comes to you from the corosync Man Page, dated 2004-08-31, and yes she's an old queen but she still slays β¨ mwah π
π¦ where this page comes from
- debian bookworm: libcpg-dev 3.1.7-1+deb12u2 Β· BSD-3-Clause
- debian trixie: libcpg-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: libcpg-dev 3.1.6-1ubuntu1 Β· BSD-3-Clause
- ubuntu jammy: libcpg-dev 3.1.6-1ubuntu1.2 Β· BSD-3-Clause
- ubuntu noble: libcpg-dev 3.1.7-1ubuntu3 Β· BSD-3-Clause
- ubuntu noble: libcpg-dev 3.1.7-1ubuntu3.2 Β· BSD-3-Clause
- ubuntu questing: libcpg-dev 3.1.9-2ubuntu1
- ubuntu questing: libcpg-dev 3.1.9-2ubuntu1.1
- ubuntu resolute: libcpg-dev 3.1.9-2ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libcpg-dev 3.1.10-3ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2006 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms