summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib/cmpbuf.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2014-04-07 21:11:29 +0000
committered <ed@FreeBSD.org>2014-04-07 21:11:29 +0000
commit22932578aa2e50d6a0ddfbfcab603f07f84f6d78 (patch)
tree834d928b533dd59a0e76b2cbdee0fb0d8cb7024c /contrib/diff/lib/cmpbuf.h
parentf9cea37833c4e71411df31b303492fe93834ee44 (diff)
downloadFreeBSD-src-22932578aa2e50d6a0ddfbfcab603f07f84f6d78.zip
FreeBSD-src-22932578aa2e50d6a0ddfbfcab603f07f84f6d78.tar.gz
Clean up shutdown_nice(). Just send the right signal to init(8).
Right now, init(8) cannot distinguish between an ACPI power button press or a Ctrl+Alt+Del sequence on the keyboard. This is because shutdown_nice() sends SIGINT to init(8) unconditionally, but later modifies the arguments to reboot(2) to force a certain behaviour. Instead of doing this, patch up the code to just forward the appropriate signal to userspace. SIGUSR1 and SIGUSR2 can already be used to halt the system. While there, move waittime to the function where it's used; kern_reboot().
Diffstat (limited to 'contrib/diff/lib/cmpbuf.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud