Ramesh-vani commited on
Commit
6135aab
·
verified ·
1 Parent(s): 2b629ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -694,7 +694,7 @@ async def process_input(user_input, process):
694
  # Send Ctrl+C signal to the subprocess
695
  process.send_signal(signal.SIGINT)
696
  # Read output and error asynchronously
697
- await process.communicate()
698
  print('stoping signal sent')
699
 
700
  else:
 
694
  # Send Ctrl+C signal to the subprocess
695
  process.send_signal(signal.SIGINT)
696
  # Read output and error asynchronously
697
+ os.kill(int(process.pid), signal.CTRL_C_EVENT)
698
  print('stoping signal sent')
699
 
700
  else: