SIGVTALRM - Sending Signals

Sending Signals

Typing certain key combinations at the controlling terminal of a running process causes the system to send it certain signals:

  • Ctrl-C (in older Unixes, DEL) sends an INT signal (SIGINT); by default, this causes the process to terminate.
  • Ctrl-Z sends a TSTP signal (SIGTSTP); by default, this causes the process to suspend execution.
  • Ctrl-\ sends a QUIT signal (SIGQUIT); by default, this causes the process to terminate and dump core.
  • Ctrl-T (not supported on all UNIXes) sends an INFO signal (SIGINFO); by default, this causes the OS (and if supported by the command) to show information about the running command.
  • These default key combinations with modern operating systems can be changed with the stty command.


Note

  • The kill(2) system call will send the specified signal to the process, if permissions allow. Similarly, the kill(1) command allows a user to send signals to processes. The raise(3) library function sends the specified signal to the current process.
  • Exceptions such as division by zero or a segmentation violation will generate signals (here, SIGFPE and SIGSEGV respectively, which both by default cause a core dump and a program exit).
  • The kernel can generate a signal to notify the process of an event. For example, SIGPIPE will be generated when a process writes to a pipe which has been closed by the reader; by default, this causes the process to terminate, which is convenient when constructing shell pipelines.

Read more about this topic:  SIGVTALRM

Famous quotes containing the words sending and/or signals:

    If the justices would only retire when they have become burdens to the court itself, or when they recognize themselves that their faculties have become impaired, I would grieve sincerely when they passed away, and you would not feel like such a hypocrite as you do when you are going through the formality of sending telegrams of condolence and giving out interviews for propriety’s sake.
    William Howard Taft (1857–1930)

    The term preschooler signals another change in our expectations of children. While toddler refers to physical development, preschooler refers to a social and intellectual activity: going to school. That shift in emphasis is tremendously important, for it is at this age that we think of children as social creatures who can begin to solve problems.
    Lawrence Kutner (20th century)