Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!turing.cs.rpi.edu!mcintyre From: mcintyre@turing.cs.rpi.edu (David McIntyre) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: How to do a warm-boot from a C program Keywords: boot, C Message-ID:
Date: 20 Feb 90 01:32:55 GMT References: <2028@milton.acs.washington.edu> Reply-To: mcintyre@turing.cs.rpi.edu (David McIntyre) Distribution: na Organization: Rensselaer Instipoly Technitute Lines: 26 jimmy writes: >Does anyone know how to do a boot from a C program? Yes, just do an Interrupt 25 (which is 19h). That will do it nicely. One minor comment: rebooting a computer is a pretty harsh way to recover from a program error. In fact, with today's windowing systems, by rebooting the system you could cause a nasty problem for another program. A Scenario: a) I am in Lotus, and decide to run your program. b) I do a shell escape. Then run your program. c) Your program crashes, and causes a reboot! d) All my Lotus data is lost, since I didn't save it before shelling out. Just a friendly point. -Dave Dave "mr question" McIntyre | "....say you're thinking about a plate mcintyre@turing.cs.rpi.edu | of shrimp.....and someone says to office : 518-276-8633 | you 'plate,' or 'shrimp'......"