Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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:
|