Index: etc/devd.conf =================================================================== --- etc/devd.conf +++ etc/devd.conf @@ -333,7 +333,7 @@ # Replace action with a proper coredump handler, but be aware that # it will run with elevated privileges. notify 10 { - match "system" "kernel"; + match "system" "kern"; match "subsystem" "signal"; match "type" "coredump"; action "logger $comm $core"; Index: sbin/devd/devd.conf.5 =================================================================== --- sbin/devd/devd.conf.5 +++ sbin/devd/devd.conf.5 @@ -259,6 +259,10 @@ CIS-vendor. .It Li class Device class. +.It Li comm +Executable name (kern). +.It Li core +Path to core file (kern). .It Li device Device ID. .It Li devclass @@ -496,11 +500,16 @@ .Bl -tag -width ".Sy Subsystem" -compact .It Sy Subsystem .It Li power -Information about the state of the system. .Bl -tag -width ".li resume" -compact .It Sy Type .It Li resume Notification that the system has woken from the suspended state. +.El +.It Li signal +.Bl -tag -width ".li resume" -compact +.It Sy Type +.It Li coredump +Notification that a process has crashed and dumped core. .El .El .Pp Index: sys/kern/kern_sig.c =================================================================== --- sys/kern/kern_sig.c +++ sys/kern/kern_sig.c @@ -3641,8 +3641,15 @@ } devctl_safe_quote_sb(sb, name); sbuf_printf(sb, "\""); - if (sbuf_finish(sb) == 0) + if (sbuf_finish(sb) == 0) { + devctl_notify("kern", "signal", "coredump", sbuf_data(sb)); + /* + * The one below is for backwards compatibility; + * it got renamed at some point to avoid using both + * "kern" and "kernel". + */ devctl_notify("kernel", "signal", "coredump", sbuf_data(sb)); + } out2: sbuf_delete(sb); out: