Thanks, but removing the var is not an option, since the cleanup will change 
some variables. In this example, I used the simplest signal (Ctrl-C), but in 
reality, this will also be used for SIGHUP, to reload the settings, etc., thus 
it'll change the state of the app.

Changing the parameter of start to var, introduces the same problem, even with 
cleanup being a template.

So, is there another way to handle SIGHUP, while changing the app state? Might 
I be approaching this the wrong way?

Thanks.

Reply via email to