def run(tempo):
proc = subprocess.Popen(["nke/NKE0.7e/terminal64","--plot"], shell=False)
time.sleep(tempo)
proc.send_signal(signal.SIGTERM)
below the output generated by sigint and the output generated by ctrl + c imagewithsigint image with ctrl + c as you can see in the second the output is different, at first the execution simply ends