[#node-KernelNotifications-2constructor] = xref:node.adoc[node]::xref:node/KernelNotifications.adoc[KernelNotifications]::KernelNotifications :relfileprefix: ../../ :mrdocs: Construct the notification handler. == Synopsis Declared in `<node/kernel_notifications.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- KernelNotifications( std::function<bool()> const& shutdown_request, std::atomic<int>& exit_status, xref:node/Warnings.adoc[node::Warnings]& warnings); ---- == Parameters [cols="1,4"] |=== | Name| Description | *shutdown_request* | Callback used to request a node shutdown. | *exit_status* | Atomic exit status set when a fatal error triggers shutdown. | *warnings* | Warnings subsystem that node warnings are forwarded to. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#