🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1299

Re: How to do a warm-boot from a C program

#1299
From: David McIntyre
Date: Tue, 20 Feb 1990 01:32
26 lines
1387 bytes
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'......"
Technical Details
Message-ID: <P#$#92_@rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!turing.cs.rpi.edu!mcintyre
References: <2028@milton.acs.washington.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <P#$#92_@rpi.edu>
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