OS - SIGINT (Ctrl-c, Control C)


SIGINT is a signal created by the controlling terminal (generally a keyboard) that sends an interrupt to a process

It is an indication to a thread that it should stop what it is doing.

This signal is generated by typing the interrupt character (typically control-C).


When sending the SIGINT, the program may close STDOUT (“output.log”) before the program finishes to print into the final log.

Example of command with a log redirection

myProgram > output.log

Powered by ComboStrap