Add shutdown hook interface to Lua API
authorMatthew I <matttpt@gmail.com>
Sat, 8 Sep 2012 18:44:26 +0000 (14:44 -0400)
committerPerttu Ahola <celeron55@gmail.com>
Fri, 30 Nov 2012 17:26:51 +0000 (19:26 +0200)
commit6c8fa83ecd3f40a8e2fec890caaaa955f9d4255c
tree6bf4d32fc0f9ad1d22ac1d76f5a447bf7d6c58e4
parentab45133ab4826359ca9a5ed50b68150eb462c8ef
Add shutdown hook interface to Lua API

Scripts can call minetest.register_on_shutdown() to register a
shutdown hook.

Document that minetest.register_on_shutdown() callbacks may not be run

If the server crashes, it is unlikely that callbacks registered using
minetest.register_on_shutdown() will be called.
builtin/misc_register.lua
doc/lua_api.txt
src/scriptapi.cpp
src/scriptapi.h
src/server.cpp