Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion exo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ def restore_cursor():
def handle_exit():
asyncio.ensure_future(shutdown(signal.SIGTERM, loop, node.server))

if platform.system() != "Windows":
# Signal handlers are not supported on Windows, KeyboardInterrupt is handled by the run() function
# Signal handlers are not supported on Windows, KeyboardInterrupt is handled by the run() function
if not psutil.WINDOWS:
for s in [signal.SIGINT, signal.SIGTERM]:
loop.add_signal_handler(s, handle_exit)

Expand Down