8000 Add support for Windows by Juzexe · Pull Request #83 · juntossomosmais/django-stomp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for Windows #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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 django_stomp/execution.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import signal
import uuid
import os
from time import sleep
from time import time
from typing import Dict
Expand Down Expand Up @@ -82,7 +83,8 @@ def start_processing(
) -> Optional[Listener]:
global _listener, is_gracefully_shutting_down

signal.signal(signal.SIGQUIT, _shutdown_handler)
if os.name == "posix":
signal.signal(signal.SIGQUIT, _shutdown_handler)
signal.signal(signal.SIGTERM, _shutdown_handler)
signal.signal(signal.SIGINT, _shutdown_handler)

Expand Down
Loading
0