Historically there were three signals bound to keystrokes these were
- SIGINT (Intettput) usually Ctrl+C or Del
- SIGQUIT - Quit - Usually bound to Ctrl+\
- SIGSUSP Suspend - Usually bound to Ctrl+Z
On some *nix flavours there are other signals also bound, you can check the keyboard bindings using the command
stty -a
On my system, OS/X, this produces the following output
speed 9600 baud; 65 rows; 213 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel iutf8
-ignbrk brkint -inpck -ignpar -parmrk
oflags: opost onlcr -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
Please note kill in this instance is not a KILL signal it is to do with clearing the current input buffer.
You may have more success with stopping processes using SIGQUIT, but this may not be true as the process may catch the signal and ignore it.
There is no concept of a list of "interrupted" processes as the process has either caught and ignored the interrupt or it has exited. You can get a list of suspended processes by typing jobs
DEL - ah, Plan 9... – new123456 – 2011-07-21T01:34:01.097
It's interesting that I have ^Q and ^S showing (like you) but have set
stty -ixon
so that they are passed through. I would think they would change to<undef>
. – Paused until further notice. – 2010-01-18T11:16:32.347I don't find a SIGSUSP in the man pages of either my OS X box or my Debian Lenny box. It seems to be SIGTSTP. – dmckee --- ex-moderator kitten – 2010-01-18T16:38:33.807