GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
shutdown(3) Arcan Lua API shutdown(3)

shutdown - Queue a shutdown event.

nil
shutdown(

optmsg, optcode )

This function will shutdown the engine and terminate the process when deemed safe. This means that it will not happened immediately, but rather that an event will be queued internally in order to give frameservers and other pending-data related tasks time to clean-up. The system interpretation of optcode varies with the underlying environment, though the EXIT_SUCCESS and EXIT_FAILURE constants are propagated and useful here. There is also a special constant, EXIT_SILENT that will return an EXIT_SUCCESS to the outer system, but only signal a 'display server lost' action to external clients, rather than asking them to shut down.

1
by default, the exit code corresponds to system EXIT_SUCCESS , but can be set to a custom value through optcode .
2
optmsg is filtered to only accept [a-Z,.0-9] and whitespace.

function shutdown0()

return shutdown(); end

function shutdown1()

return shutdown("giving up", -1); end
July 2025 system

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.