1
Hello, I need to run an executable done in c,this executable performs operations on a board and writes to a file, the problem is that the write event occurs when the program receives a Ctrl+c. I tried to send a sigint(as far as I know are equivalent) but this caused the execution to end immediately without writing in the file. my code:
def run(tempo):
proc = subprocess.Popen(["nke/NKE0.7e/terminal64","--plot"], shell=False)
time.sleep(tempo)
proc.send_signal(signal.SIGTERM)
below the sigint generated output and Ctrl+c generated output image with sigint image with Ctrl+c as you can see in the second the output is different, in the first the execution simply ends