Commits

Alain Poirier committed f24a2da

On Windows, `os.kill()` raises an "access denied" error

  • Participants
  • Parent commits 35612f6

Comments (0)

Files changed (1)

nagare/admin/reloader.py

 import os
 import sys
 import time
+import platform
 import threading
 import traceback
 import subprocess
                 #    raise
                 return 1
         finally:
-            if (proc is not None) and hasattr(os, 'kill'):
+            if (proc is not None) and hasattr(os, 'kill') and (platform.system() != 'Windows'):
                 import signal
                 try:
                     os.kill(proc.pid, signal.SIGTERM)