libssh2_channel_signal_ex(3)

πŸ“¦
version 1.11.1 Β· 2 versions
  • 1.11.1 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.11.0 Β· ubuntu noble
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 from libssh2_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, no SIG prefix 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 🌈⭐