Difference between revisions of "Hangup"

From NetHackWiki
Jump to navigation Jump to search
(information about SIGHUP bug fix from DevTeam)
(Added danger of hangup just before ascending.)
Line 3: Line 3:
 
If you hangup while [[NetHack]] is running, then (on systems with the SIGHUP [[signal]], such as [[Unix]], [[VMS]] and [[Microsoft Windows]]), the hangup function at [[save.c#line83]] will save your game. For players who use NetHack's [[tty]] interface, an easy way to save the game is to close the terminal emulator or telnet client with NetHack's [[tty]] interface inside it.
 
If you hangup while [[NetHack]] is running, then (on systems with the SIGHUP [[signal]], such as [[Unix]], [[VMS]] and [[Microsoft Windows]]), the hangup function at [[save.c#line83]] will save your game. For players who use NetHack's [[tty]] interface, an easy way to save the game is to close the terminal emulator or telnet client with NetHack's [[tty]] interface inside it.
  
Beware of hanging up during a prompt, as it has the effect of [[esc|cancelling]] the prompt. You will not get a refund on your [[wish]] or [[genocide]] order.
+
Beware of hanging up during a prompt, as it has the effect of [[esc|cancelling]] the prompt. You will not get a refund on your [[wish]] or [[genocide]] order. If you hangup after offering the [[Amulet of Yendor]] on the [[Astral Plane]] but before [[ascending]], you will render the game [[unwinnable]]!
  
 
One of the listed [[bugs in NetHack 3.4.3#SC342-3|bugs]] involves some method of using hangup to cheat. [[Cheating#Hangup_saves]] describes some ways to cheat using a hangup save. [[DevTeam]] member Pat Rankin provided some information about how this bug is fixed in the [[next version]] of NetHack in [https://groups.google.com/d/msg/rec.games.roguelike.nethack/Atg9JKrGpfw/Ua23WDLMZmsJ this UseNet post.]
 
One of the listed [[bugs in NetHack 3.4.3#SC342-3|bugs]] involves some method of using hangup to cheat. [[Cheating#Hangup_saves]] describes some ways to cheat using a hangup save. [[DevTeam]] member Pat Rankin provided some information about how this bug is fixed in the [[next version]] of NetHack in [https://groups.google.com/d/msg/rec.games.roguelike.nethack/Atg9JKrGpfw/Ua23WDLMZmsJ this UseNet post.]
  
 
[[Category:Development]]
 
[[Category:Development]]

Revision as of 23:40, 9 May 2015

A hangup occurs when you disconnect a terminal from the programs running in it. Originally, "hangup" referred to the process of ending a telephone call by placing (or hanging up) the phone on the hook. Some terminals connected to computers using phone lines (for example, with old DOS or Macintosh software like the communication modes of Microsoft Works or AppleWorks) and became subject to hangup. With windowing systems, you can now cause hangups by closing terminal emulators or DOS prompts with programs still running on them. With the Internet, you can cause a hangup by quitting your telnet or ssh client while still running programs. More generally, a hangup is any instance when a parent process quits.

If you hangup while NetHack is running, then (on systems with the SIGHUP signal, such as Unix, VMS and Microsoft Windows), the hangup function at save.c#line83 will save your game. For players who use NetHack's tty interface, an easy way to save the game is to close the terminal emulator or telnet client with NetHack's tty interface inside it.

Beware of hanging up during a prompt, as it has the effect of cancelling the prompt. You will not get a refund on your wish or genocide order. If you hangup after offering the Amulet of Yendor on the Astral Plane but before ascending, you will render the game unwinnable!

One of the listed bugs involves some method of using hangup to cheat. Cheating#Hangup_saves describes some ways to cheat using a hangup save. DevTeam member Pat Rankin provided some information about how this bug is fixed in the next version of NetHack in this UseNet post.