mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 12:56:32 -04:00
This adds support for the PreShutdown signal indicating the system will be shutting down. This allows services which need time to shutdown gracefully to use SERVICE_ACCEPT_PRESHUTDOWN to register for SERVICE_CONTROL_PRESHUTDOWN events. https://docs.microsoft.com/en-us/windows/win32/api/winsvc/nc-winsvc-lphandler_function_ex?redirectedfrom=MSDN Change-Id: I380d366d49ff380972c1efe83f43610b30432f35 GitHub-Last-Rev: db8ea88b2529b0845053ec364584eb8fc3324aa9 GitHub-Pull-Request: golang/sys#85 Reviewed-on: https://go-review.googlesource.com/c/sys/+/253477 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Daniel Martí <mvdan@mvdan.cc>