diff options
author | 2017-09-29 09:36:04 +0000 | |
---|---|---|
committer | 2017-09-29 09:36:04 +0000 | |
commit | a00d4ff8def67b5c79078414a351436b4c4921da (patch) | |
tree | d8a5563d9101a955ae28906f37f2cf8c0e66bac3 /sys/ddb/db_interface.h | |
parent | Do not segfault when the string table is invalid or not present. (diff) | |
download | wireguard-openbsd-a00d4ff8def67b5c79078414a351436b4c4921da.tar.xz wireguard-openbsd-a00d4ff8def67b5c79078414a351436b4c4921da.zip |
New ddb(4) command: kill.
Send an uncatchable SIGABRT to the process specified by the pid
argument. Useful in case of CPU exhaustion to kill the DoSing
process and generate a core for later inspection.
ok phessler@, visa@, kettenis@, miod@
Diffstat (limited to 'sys/ddb/db_interface.h')
-rw-r--r-- | sys/ddb/db_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ddb/db_interface.h b/sys/ddb/db_interface.h index 9ae9d20024c..11d0409dd77 100644 --- a/sys/ddb/db_interface.h +++ b/sys/ddb/db_interface.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.h,v 1.19 2017/01/09 17:58:44 mpi Exp $ */ +/* $OpenBSD: db_interface.h,v 1.20 2017/09/29 09:36:04 mpi Exp $ */ /* $NetBSD: db_interface.h,v 1.1 1996/02/05 01:57:03 christos Exp $ */ /* @@ -40,6 +40,7 @@ void db_stack_trace_print(db_expr_t, int, db_expr_t, char *, db_addr_t db_disasm(db_addr_t, boolean_t); /* kern/kern_proc.c */ +void db_kill_cmd(db_expr_t, int, db_expr_t, char *); void db_show_all_procs(db_expr_t, int, db_expr_t, char *); /* kern/kern_timeout.c */ |