libssh2_channel_signal_ex(3)
π libssh2_channel_signal_ex β the libssh2 bestie manual π
okay so bestie, buckle up, we're doing libssh2_channel_signal_ex(3) today and honestly? it's giving "send a vibe check to a process" β¨
πΈ NAME πΈ
libssh2_channel_signal_ex β send a signal to a process that was previously opened on a channel π
π SYNOPSIS π
#include <libssh2.h>
int
libssh2_channel_signal_ex(LIBSSH2_CHANNEL *channel,
const char *signame,
size_t signame_len)
π¦ DESCRIPTION π¦
So basically you can deliver a signal to the remote process/service. iconic. but lowkey β some servers or systems may not implement signals at all, and in that case they will probably ignore this message. so don't be shocked if nothing happens, it's not you, it's them π
Here's the cast of characters, no cap:
channelβ a previously opened channel instance, like the one you got back fromlibssh2_channel_open_ex(3)π«Άsignameβ the signal name, and it's the same as the signal name constant, just without the leading"SIG". so like, noSIGprefix bestie, we're keeping it cute βοΈsigname_lenβ the length of the passed signal name parameter π
also there's a macro, libssh2_channel_signal(channel, signame), that literally supplies the strlen of the signame for you. the way that it just handles the length so you don't have to?? obsessed π
β¨ RETURN VALUE β¨
Normal channel error codes, as always. and LIBSSH2_ERROR_EAGAIN when it would block π
π SEE ALSO π
libssh2 1.11.0 Β· 20 Apr 2023
and that's the whole page bestie, mwah π go forth and signal your processes, periodt πβ
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms