TT_MESSAGE_SEND_ON_EXIT(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’… tt_message_send_on_exit πŸ’…

okay so bestie, this page is a library call manual, and it's giving β€œset up a message to send when your process ghosts the chat” energy. 🫢

✨ NAME ✨

tt_message_send_on_exit β€” set up a message to send upon unexpected exit πŸ’Œ

πŸ¦‹ SYNOPSIS πŸ¦‹

#include &<Tt/tt_c.h>
Tt_status tt_message_send_on_exit(
Tt_message m);

🌸 DESCRIPTION 🌸

okay so tt_message_send_on_exit is literally requesting that the ToolTalk service send this message if the process exits unexpectedly. πŸ’– The message is sent to the ToolTalk service, which queues the message internally until either of two events occur:

  1. The procid that sent the tt_message_send_on_exit message to the ToolTalk service calls tt_close(3). In this case, the queued message is deleted. πŸ—‘οΈ
  2. The connection between the ttsession(1) server and the process that sent the tt_message_send_on_exit message to the ToolTalk service is broken; for example, if the application has crashed. πŸ’€

In this case, the ToolTalk service matches the queued message to its patterns and delivers it in the same manner as if the process had sent the message normally before exiting. slay. ✨

If a process sends a normal termination message but exits without calling tt_close(3), both the normal termination message and the on_exit message are delivered. both. at once. iconic. πŸ‘‘

The m argument is the opaque handle for the message involved in this operation. 🫢

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the tt_message_send_on_exit function returns the status of the operation as one of the following Tt_status values:

  • TT_OK β€” The operation completed successfully. πŸ’–
  • TT_ERR_ADDRESS β€” The specified Tt_address is invalid. πŸ™ˆ
  • TT_ERR_CLASS β€” The specified Tt_class is invalid. πŸŽ€
  • TT_ERR_FILE β€” The specified file does not exist or it is inaccessible. 😭
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it. πŸ’€
  • TT_ERR_OBJID β€” The objid passed to the ToolTalk service does not reference an existing object spec. 🫠

🌈 SEE ALSO 🌈

Tt/tt_c.h - Tttt_c(5), tt_close(3).


okay byeee bestie πŸŽ€ this footer cutie is tt_message_send_on_exit(library call) β€” that's the footer text from the page, and there's no separate version/date line to spill, so we're not inventing one. periodt. πŸ’œ

πŸ“¦ where this page comes from