Enabling/disabling hangup interrupts (sys.Hangup)ΒΆ

sys.Hangup,,i1

Determines if hangup interrupts enabled

Determines whether hangup interrupts are to be respected. May be set to ON or OFF.

If sys.Hangup is ON, and a Sculptor program receives a hangup interrupt, it completes any file accesses being processed and then terminates.

If sys.Hangup is OFF, then hangup interrupts are ignored.

The initial state of sys.Hangup in a program is inherited from the parent process. If the parent process would have ignored a hangup interrupt, then the initial state of sys.Hangup is OFF. Similarly, if the parent process would have been terminated by a hangup interrupt, then the initial state of sys.Hangup is ON.


NOTES

  • The hangup interrupt is usually generated when a serial line to a terminal fails, when a modem disconnects, or, in the case of a multi-user system, it can be an indication that the system is about to close down.

  • On UNIX systems, switching the terminal off or temporarily removing the serial cable may cause a hangup interrupt. To prevent this, see the clocal option of the UNIX command stty.


RELATED TOPICS

sys.Interrupts