[interfacekit] Re: Shutdown Process

> OK, you have a point there.
> 
> So the shutdown process would work like this:
> 
> 1) Terminate non-background user applications one after the other.
> 
> 2) Terminate non-background system applications one after the other. 
> This 
> would basically be Deskbar and Tracker (ATM I just mark all that live 
> in 
> the /boot/beos/system (except the servers) as system app). This is 
> the 
> point of no return; i.e. when starting this phase, the "Cancel 
> Shutdown" 
> button is being disabled and apps requesting cancelation will be 
> assassinated viciously.
> 
> 3) Broadcast shutdown request to all background apps (save the vital 
> servers (app, input, registrar)) and wait until they're gone 
> (starting to 
> kill them after a timeout).
Why is there a point of no return? How much effort would it take to 
allow cancellation of shutdown up to when _kern_shutdown() is called? 
One thing that I have done (and I'm pretty sure others have) is 
accidentally hit 'Reboot' or 'Shutdown' in the Deskbar. Couldn't a 
script be called which checks to see if each nonvital server is running 
and start it back up if it isn't? It certainly would be a nice thing to 
have, if nothing else.

--DW

Other related posts: