signals

TF catches several signals from the operating system and handles them specially:

SIGINT (normally generated by typing ^C)
Aborts any running macro or blocking hostname resolution or connect, and, if interactive is on, offers a menu of choices:
C) continue tf; X) exit; T) disable triggers; P) kill processes. If interactive is off, tf exits without prompting.
SIGQUIT (normally generated by typing ^\)
If interactive is on, TF prompts the user to quit. If the answer is 'y', or interactive is off, TF will dump a core file if configured to do so, 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 if SIGHUP was not ignored when tf was started.
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, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys