On Wed, 25 Feb 2004 19:47:33 +0000 (GMT), Bart Oldeman wrote:

main.c is init code. It may be disappeared by the time you exit command.com.

I found the exact place when it crashes. After the the IRET instruction at the end of exec_user(). The code executed just after this instruction is at the former INIT segment, so you're right!


A hook would be needed in the resident code, and it was there some time ago but it was removed to save some bytes ;)

Then the printf "System shutdown complete / Reboot now" and "for (;;);" lines should have been removed too as unreachable code ;-)


the real question is: why is this a problem? I think you're not supposed to exit the primary shell.

To crash after typing "EXIT" just because I don't have /P on my SHELL line is not very nice! ;-)


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