Created
September 29, 2014 05:48
-
-
Save prologic/000194eb1645a98f39bf to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(circuits) | |
prologic@daisy | |
Mon Sep 29 15:49:50 | |
~/circuits | |
$ grin -A 2 -B 2 "SIGKILL" | |
./circuits/core/manager.py: | |
27 - | |
28 - try: | |
29 : from signal import SIGKILL | |
30 + except ImportError: | |
31 : SIGKILL = SIGTERM | |
32 + | |
33 + | |
755 - | |
756 - if self.__process.is_alive(): | |
757 : kill(self.__process.pid, SIGKILL) | |
758 + | |
759 + if not self.running: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment