1. pygame
  2. Untitled project
  3. pygame

Commits

akalias  committed 384960d

fixed bug in *nix async_sub.py for Popen.kill()

  • Participants
  • Parent commits 992c3c0
  • Branches default

Comments (0)

Files changed (1)

File async_sub.py

View file
  • Ignore whitespace
     import win32api
     import msvcrt
 else:
+    import signal
     import select
     import fcntl
 
 
     else:
         def kill(self):
-            os.kill(self.pid)
+            os.kill(self.pid, signal.SIGTERM)
         
         def send(self, input):
             if not self.stdin: