QUIT(4)
πΈ NAME πΈ
Okay bestie, welcome to the Quit(special file) manual page. The main character here is Quit β terminate an operation or an entire tool. π
β¨ SYNOPSIS β¨
Quit(in boolean silent,
in boolean force
[in messageID operation2Quit]);
π¦ DESCRIPTION π¦
So the Quit request is literally here to terminate an operation or an entire tool. If you leave out the optional operation2Quit argument, this request asks the handling procid to quit. If the request succeeds, one or more ToolTalk procids should call tt_close(3), and zero or more processes should exit. Yes, zero. It's giving "maybe nobody leaves, maybe everybody leaves." π
With the optional operation2Quit argument, this request asks the handler to terminate the indicated request. Whether the terminated request must therefore be failed depends on its semantics. Often, termination can be considered to mean that the requested operation has been carried out to the requester's satisfaction. β¨
The Quit request should be failed (and the status code set appropriately) when the termination is not performed--for example, because the silent argument was false and the user canceled the quit. π«Ά
The silent argument affects user notification of termination. If silent is True, the handler is not allowed to block on user input before terminating itself (or the indicated operation). If it is False, however, the handler may seek such input. π
The force argument is a Boolean value indicating whether the handler should terminate itself (or the indicated operation) even if circumstances are such that the tool ordinarily would not perform the termination.
For example, a tool might have a policy of not quitting with unsaved changes unless the user has been asked whether the changes should be saved. When force is true, such a tool should terminate even when doing so would lose changes that the user has not been asked by the tool about saving. π
The operation2Quit argument is the request that should be terminated. For a request to be terminable, the handler must have sent a Status notice back to the requester (thus identifying itself to the requester). π
π ERRORS π
The ToolTalk service may return one of the following errors in processing the Quit request:
TT_DESKTOP_ECANCELEDβ The user overrode the Quit request.TT_DESKTOP_ENOMSGβ Theoperation2Quitargument does not refer to any message currently known by the handler.
π APPLICATION USAGE π
The ttdt_session_join(3), and ttdt_message_accept(3), functions can be used to register for, and help process, the Quit request.
In the successful case, βzero or moreβ procids are cited because a single process can instantiate multiple independent procids, and a single procid can conceivably be implemented by a set of cooperating processes. π§
β EXAMPLES β
The Quit request can be sent as in the following example:
Tt_message msg = tttk_message_create(0, TT_REQUEST, TT_SESSION,
the_recipient_procid, TTDT_QUIT,
my_callback);
tt_message_iarg_add(msg, TT_IN, Tttk_boolean, 0);
tt_message_iarg_add(msg, TT_IN, Tttk_boolean, 0);
tt_message_send(msg);
π₯ WARNINGS π₯
β οΈ Okay, serious warning bestie: Quit can also be sent as a multicast notice, as an edict to all tools in the scope of the message. The consequences of doing so can be severe and unexpected. π
π SEE ALSO π
π Cute sign-off time: this page is Quit(special file) β that's the footer/source line, and there's no separate date or version listed on the page, so that's all the footer lore we've got. π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms