kernel - Implement debug function w/kern.logsigexit > 1
commitf33c4079e4b0c6cdc8076c03bc21e2d0a97261f0
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 3 May 2019 17:15:13 +0000 (3 10:15 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 3 May 2019 17:16:43 +0000 (3 10:16 -0700)
tree386f5ed3834af2a0837891f04477658bf43cf53e
parent023d7ce8c0898d1b14f6d47b7b6d0e1e065be885
kernel - Implement debug function w/kern.logsigexit > 1

* kern.logsigexit defaults to 1, which logs signal exits that might
  core dump.

* This change allows setting this sysctl to 2 for debugging purposes.
  The kernel will log the error and then stall uninterruptibly until
  you set the sysctl back to 1 (to resume logging normally).

  This is more kernel debugging only.
sys/kern/kern_sig.c