2007-09-01

Terminal 上常见的几个 signal

  • SIGHUP: Hangup detected on controlling terminal or death of controlling process
  • SIGINT: Interrupt from keyboard (Ctrl-C)
  • SIGQUIT: Quit from keyboard (Ctrl-\)
  • SIGTSTP: Stop typed at tty (Ctrl-Z)
  • SIGCONT: Continue if stopped (fg)
  • SIGTTIN: tty input for background process
  • SIGTTOU: tty output for background process (一般情况下 terminal 没有 enable 这个 signal, 可以用 `stty tostop' 来 enable)

No comments: