My question is this: Why in UNIX if I press Ctrl + C to finish the execution of a program, are there still times when I get the output of it? That is, I do not refer to situations in which the SIGINT interruption, caused by Ctrl + C, is handled by code, if not when the keys are pressed and the program does not end immediately, but after a time.
I imagine that it is due to a delay in the UNIX keyboard buffer or because the keyboard buffer is busy, but I can not really make sure or understand this effect.
I would be very grateful if you would explain it to me. Greetings!