Contents|Index|Previous|Next
kill
USAGE
kill [-sigN] pid1 [pid2 ...]
DESCRIPTION
The kill program allows you to send arbitrary signals to other Cygwin programs. The usual purpose is to end a running program from some other window when the keystroke combination, Ctrl+C, won't work, but you can also send program-specified signals such as SIGUSR1 to trigger actions within the program, such as for enabling debugging or re-opening log files.
Each program defines the signals they understand.
pid  values are the Cygwin process ID values, not the Windows process ID values. To get a list of running programs and their Cygwin PIDs, use the Cygwin ps program (see ps).

To send a specific signal, use the -signN option, either with a signal number or a signal name (minus the SIG part), like the following examples specify.
 

$ kill 123
$ kill -1 123
$ kill -HUP 123
The following list provides the available signals, their numbers, and some commentary on them; the file, <sys/signal.h>, is the official source of this information.

 
SIGHUP       1    hangup
SIGINT       2    interrupt
SIGQUIT      3    quit
SIGILL       4    illegal instruction (not reset when caught)
SIGTRAP      5    trace trap (not reset when caught)
SIGABRT      6    used by abort
SIGEMT       7    EMT instruction
SIGFPE       8    floating point exception
SIGKILL      9    kill (cannot be caught or ignored)
SIGBUS      10    bus error
SIGSEGV     11    segmentation violation
SIGSYS      12    bad argument to system call
SIGPIPE     13    write on a pipe with no one to read it
SIGALRM     14    alarm clock
SIGTERM     15    software termination signal from kill
SIGURG      16    urgent condition on IO channel
SIGSTOP     17    sendable stop signal not from tty
SIGTSTP     18    stop signal from tty
SIGCONT     19    continue a stopped process
SIGCHLD     20    to parent on child stop or exit
SIGCLD      20    System V name for SIGCHLD
SIGTTIN     21    to readers pgrp upon background tty read
SIGTTOU     22    like TTIN for output if (tp->t_local&LTOSTOP)
SIGIO       23    input/output possible signal
SIGPOLL     23    System V name for SIGIO
SIGXCPU     24    exceeded CPU time limit
SIGXFSZ     25    exceeded file size limit
SIGVTALRM   26    virtual time alarm
SIGPROF     27    profiling time alarm
SIGWINCH    28    window changed
SIGLOST     29    resource lost (eg, record-lock lost)
SIGUSR1     30    user defined signal 1
SIGUSR2      31    user defined signal 2

Top|Contents|Index|Previous|Next