[comp.sys.amiga.programmer] Shutting down the OS. Was Re: Copper mystery

espie@flamingo.Stanford.EDU (Marc Espie) (03/30/91)

Another thing to do before shutting down the OS.
Check if the user has any critical stuff running (essentially
a busy serial device). If that's the case, check with him
whether he wants to really shut down the OS.
That's very nasty to get a download trashed just because you didn't
remember this damn demo killed your os. Such demos end in the trashcan
pretty fast.

Also, if you use Forbid() occasionnally, try *by all means* to see whether
it is running concurrently with a serial program (set the serial buffer
to a small size, like 1K). If it doesn't, you forbid too long.

(From the RKM: disabling the os for a long period of time is a bad idea.
Not in the RKM:... essentially because of the serial.device proper operation)

Thank you for listening :-)
--
	Marc Espie (espie@flamingo.stanford.edu)