Trust that shutdown signal will kill tor
This commit is contained in:
parent
cafb9ddcf4
commit
4fa43fdf60
1 changed files with 0 additions and 4 deletions
|
@ -115,10 +115,6 @@ class TorManager(object):
|
||||||
tor_started = self.tor_process.poll() is None
|
tor_started = self.tor_process.poll() is None
|
||||||
if tor_started:
|
if tor_started:
|
||||||
self.request("SIGNAL SHUTDOWN")
|
self.request("SIGNAL SHUTDOWN")
|
||||||
if sys.platform.startswith("win"):
|
|
||||||
subprocess.call(['taskkill', '/F', '/T', '/PID', str(self.tor_process.pid)]) # Also kill sub-processes
|
|
||||||
else:
|
|
||||||
self.tor_process.terminate()
|
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
self.log.error("Error stopping Tor: %s" % err)
|
self.log.error("Error stopping Tor: %s" % err)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue