On Thu, 26 Feb 2004 08:48:17 +0100 (CET), Steffen Kaiser wrote:

As you showed, the "reloading" of the shell is performed by the kernel in MS DOS. I do not suggest to copy this behaviour

Neither do I. ROM-DOS expects the user to type a new shell name. But even this is not mandatory.


but to have a "the computer has shutdown.

I think that "shutdown" is a term related to multi-tasking systems like Unix, VMS, NT, OS/2...


Now power off or reboot" message.

Or simply reboot without waiting for the user! It's the only thing he can do at this point anyway.


Well, wouldn't it enough to have a small piece of code:

void stopSystem(void) {
puts("\nThe system has shutdown. Please reboot or power off.");
for(;;) _asm hlt;
}

in persistent memory and process0 gets "stopSystem" as termination address?

The question is how to determine whether the teminating process is process 0?


Lucho


------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to