RickoNoNo3 / KillNicely

A C# library to kill a process with hacked Ctrl-C to make it shutdown gracefully in Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KillNicely

To solve the gracefully shutdown(use SIGINT and/or SIGTERM) triggers problem in Windows.

This is a DLL wrap from https://blog.codetitans.pl/post/sending-ctrl-c-signal-to-another-application-on-windows/.

You can call [KillNicely.Killer]::StopProgram(pid) to stop a process by simulating an Ctrl-C pressing.

WARN: it may not just stop the process which the pid related, but close its own process too. So always start a new process to call and just call it.

About

A C# library to kill a process with hacked Ctrl-C to make it shutdown gracefully in Windows


Languages

Language:C# 100.0%