signals

TF catches several signals from the OS and handles them specially:

SIGINT (normally generated by typing ^C)
Aborts any running macro or blocking hostname resolution or connect, and offers a menu of choices:
C) continue tf; X) exit; T) disable triggers; P) kill processes.
SIGQUIT (normally generated by typing ^\)
Prompts the user to quit. If the answer is 'y', TF will dump a core file if the OS supports it, and exit.
SIGTERM
Calls the SIGTERM hook, and then exits TF.
SIGHUP (normally generated when the terminal disconnects)
Calls the SIGHUP hook, and then exits TF.
SIGUSR1
Calls the SIGUSR1 hook. TF does not exit.
SIGUSR2
Calls the SIGUSR2 hook. TF does not exit.
SIGTSTP (normally generated by typing ^Z)
Suspends the TF process, like /suspend.
SIGWINCH (normally generated by resizing the terminal)
Redraws the screen, and calls the RESIZE hook.

See also: hooks, /signal


Back to index
Back to tf home page
Copyright © 1998 - 1999 Ken Keys