Windows - Signals
To tell a process to quit at the system level, we use something called a signal. Signal: A way to tell a process that something has just happened
One of the most common signals you’ll come across is called SIGINT, which stands for signal interrupt. You can send a signal to a running process with Control C key combination.
Let’s say you start at the disk part tool we looked at in our discussion on partition formatting. Is going to open up a command prompt and then launch diskpart.
If you decide you don’t want to actually format any disks, you can hold down the Control key and press “C” at the same time to send the SIGINT signal to the diskpart process
You’ll see that the window that the disk part program was running in closes and the process terminates.
For more information about signal handling in Windows, check out the link here.