TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Jonathan de Boyne Pollard
date: 1996-11-09 09:26:48
subject: reboot

PF>
  >  PE> Can someone please send me code that will do a reboot(). Thanks +
  >  PE> bye.  Paul.
  >
  >  RH> You have it: the standard OS/2 SETBOOT command!
  >
  > Actually,  it's NOT standard (it is only installed if the
  > user selects certain install options),  so asking for a way
  > to reboot from code is not a barren question.
PF>

  Nevertheless, it is also important to point out every time that this
  question is asked that rebooting a multitasking operating system is not
  something that should be done lightly.  In almost all cases, it is
  something that should be done by the *user*, manually, rather than
  automatically by the application.

  For example, the IBM Software Installer does not automatically reboot
  the machine once it has successfully installed something, even though
  some applications do not work properly until the system has been
  restarted with the new environment variables in CONFIG.SYS.  It merely
  tells the user to shut down and restart the system.

  It's selfish, narrowminded, and daft to assume that one is the only
  application that a user is running.  It's a legacy of DOS-think and
  Windows-think that doesn't apply to OS/2.

  To my mind, the "how do I reboot an OS/2 machine under program control?"
  question should be treated in much the same way as the "how do I write
  an interrupt routine for serial I/O on OS/2 ?" question.  That is, they
  both have answers, but it should be pointed out that they are esoteric
  and specialised areas, and that an OS/2 application program should not
  normally need to do either of these things, even if they *were* required
  for DOS or DOS+Windows.

  > JdeBP <
___
 X MegaMail 2.10 #0:

--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 440/4 141/209 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.