11# -*- shell-script -*-
22# gdb-like "kill" debugger command
33#
4- # Copyright (C) 2002-2006, 2008-2011, 2016 Rocky Bernstein <[email protected] >4+ # Copyright (C) 2002-2006, 2008-2011, 2016-2019 Rocky Bernstein
5+ 56#
67# This program is free software; you can redistribute it and/or
78# modify it under the terms of the GNU General Public License as
1920# MA 02111 USA.
2021
2122_Dbg_help_add kill \
22- " **kill** [*signal-number*]
23+ ' **kill** [*signal-number*]
2324
24- Send this process a POSIX signal ('9' for ' SIGKILL' or ' kill -SIGKILL' )
25+ Send this process a POSIX signal ("9" for " SIGKILL" or " kill -SIGKILL" )
2526
26- 9 is a non-maskable interrupt that terminates the program. If program is threaded it may
27- be expedient to use this command to terminate the program.
27+ 9 is a non-maskable interrupt that terminates the program. If program
28+ is threaded it may be expedient to use this command to terminate the
29+ program.
2830
29- However other signals, such as those that allow for the debugged to handle them can be
30- sent.
31+ However other signals, such 15 or `-INT` which allow for the debugged program to
32+ run an interrupt handler can be sent too .
3133
3234Giving a negative number is the same as using its positive value.
3335
@@ -38,13 +40,16 @@ Examples:
3840 kill 9 # same as above
3941 kill -9 # same as above
4042 kill 15 # nicer, maskable TERM signal
41- kill! 15 # same as above, but no confirmation
43+ kill -INT # same as above
44+ kill -SIGINT # same as above
45+ kill -WINCH # send "window change" signal
46+ kill -USR1 # send "user 1" signal
4247
4348See also:
4449---------
4550
4651**quit** for less a forceful termination command.
47- **run** is a way to restart the debugged program."
52+ **run** is a way to restart the debugged program.'
4853
4954_Dbg_do_kill () {
5055 if (( $# > 1 )) ; then
0 commit comments