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