I want to do some job when the server is closing. But in linux, headless server seems just be terminated after receive 'SIGINT (ctrl-c)'.
Mono UnixSignal seems not shipped with Unity. Are there other official ways to do this?
Or I just hijack the SIGINT signal in native layer, and reverse call c# Apllication.Quit?
↧