reboot - Mask SIGTERM to fix a self-immolation issue
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 23 Oct 2014 17:17:07 +0000 (10:17 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 23 Oct 2014 17:17:07 +0000 (10:17 -0700)
commitc1235909fbc4690781b3eff4c1a6a6a7447580f3
tree960c5e98614a8ef4813f5a0d82d7d4be32ef15d9
parent28b0e27aa0983a991b8437c116613d8feeeafb91
reboot - Mask SIGTERM to fix a self-immolation issue

* reboot is getting SIGTERM'd, possibly from its parent shell, before
  it can finish telling the system to reboot.  Mask this signal as well.

* But possibly exposed by earlier SMP work that could result in the
  signal getting in front of the final system call to reboot.

Submitted-by: YONETANI Tomokazu
sbin/reboot/reboot.c