SAM_W...AL_SET(3)
π SAM_WARN_SIGNAL_SET(3) π
okay bestie, welcome to the Corosync Cluster Engine Programmer's Manual β yes, the whole thing, and yes we're doing this one together π«Ά
β¨ NAME β¨
sam_warn_signal_set β set the warn signal, that's it, that's the vibe π
πΈ SYNOPSIS πΈ
#include <corosync/sam.h>
cs_error_t sam_warn_signal_set (int warn_signal);
like. one function. one int. we love a low-maintenance icon π
π¦ DESCRIPTION π¦
so sam_warn_signal_set is the lil function you call to configure the warning signal β the one that gets sent before your app gets actually, for-real killed for being unresponsive π
think of it as the "hey bestie, you good?" text before the block button. iconic behaviour honestly.
the default value is SIGTERM. and plot twist β you can pass SIGKILL here to emulate the "not warning signal send" behaviour π«£ no warning, just straight to the consequences, main character energy fr fr.
π RETURN VALUE π
this call returns the CS_OK value if it's successful. otherwise, an error gets returned. no cap, that's the whole deal.
π ERRORS π
CS_ERR_BAD_HANDLEβ the component was not initialized by callingsam_initialize(3), or it was already finalized. like, girl, you have to actually start things before you can use them π
β SEE ALSO β
also dropping the rest of the error crew here because they live in this section for some reason and I refuse to leave them out π:
CS_ERR_TRY_AGAINβ resource temporarily unavailable π€CS_ERR_INVALID_PARAMβ invalid argument, bestie, check ur inputs πCS_ERR_ACCESSβ permission denied, not for you i guess π«CS_ERR_LIBRARYβ the connection failed πCS_ERR_INTERRUPTβ system call interrupted by a signal βCS_ERR_NOT_SUPPORTEDβ the requested protocol/functionality is not supported πCS_ERR_MESSAGE_ERRORβ incorrect auth message received π€¨CS_ERR_NO_MEMORYβ not enough memory to complete the requested task, she's full π
lowkey reminder:SIGTERMis the default,SIGKILLmeans the warning never sends. don't be shocked when there's no warning. you asked for that. π
corosync Man Page Β· 03/11/2010 Β· SAM_W...AL_SET(3) β ok that's the whole page bestie, go forth and set ur signals, ily, mwah πβ¨π
π¦ 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) 2010 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms