CancelKeyPress not being handled/interrupted correctly
The issue is that on ctrl+c press the application does call CancelKeyPress event, however I'm assuming it is not respecting e.Cancel = true correctly. Either that or the main program passes ctrl+c to the spawned process and does not respect e.Cancel = true.
Code :
Program.cs
ServerHandler.cs (Relevant code. _serverProcess is a reference to new spawned Process, not the current main process)
CustomLifetime.cs
1 Reply
Adding more to main cause of message limit. My goal is to simply interrupt the default behaviour of ctrl+c and stop the spawned child manually without stopping the main process