Description
Purpose: Kestrel processes (and perhaps others) respond to SIGINT for clean shutdown. It would be nice if we could help by sending this signal.
Inspiration: https://stackoverflow.com/questions/813086/can-i-send-a-ctrl-c-sigint-to-an-application-on-windows
Another implementation: https://github.com/nullean/proc
Also related: https://github.com/dotnet/cli/pull/10720/files
Would need to check for windows since I don't know what the linux implementation is.
Another useful function for detecting whether we are part of that: https://docs.microsoft.com/en-us/windows/console/getconsoleprocesslist
Unix kill: https://github.com/dotnet/corefx/blob/81bd671efda5db20fae1eb381aeff2cf8ea727ac/src/Common/src/Interop/Unix/System.Native/Interop.Kill.cs + https://github.com/dotnet/corefx/blob/83753bc26b6debb966b94c0c26d4e718f312c8e1/src/Common/src/Interop/Unix/Interop.Libraries.cs, or alternatively https://developers.redhat.com/blog/2019/03/25/using-net-pinvoke-for-linux-system-functions/