On Tue, 05 May 2015 09:34:12 GMT, yawniek wrote:

is there a way to register code to be run on server shutdown?

e.g. i want to flush and close a specific log file from within a WorkerTask.

https://github.com/yannick/vibed-crash-example
here is an example, my questions:

a) why does it crash
b) why does it leak memory
c) how to cleanly shutdown the worker task