Closed 23cku0r closed 1 year ago
Hi 23cku0r. To figure out what's up you'll need Tor's log. You can do so as follows. Replacing DEBUG with NOTICE to start with will likely be more helpful...
proc = stem.process.launch_tor_with_config(
config = {
'SocksPort': str(port),
'ControlPort': str(get_control_port(port)),
'Log': 'DEBUG file /tmp/tor_debug_log',
}
)
Odd. Stem can't improve this (it simply issues the shutdown signal to the tor process). I'd suggest reaching out to the upstream project: https://support.torproject.org/misc/bug-or-feedback/
Sorry I can't be more help.
Replacing line 128 in process.py
to tor_process = subprocess.Popen(' '.join(runtime_args), stdout = subprocess.PIPE, stdin = subprocess.PIPE, stderr = subprocess.PIPE, shell=True)
fixes this problem
How to properly shutdown the tor process? I always have zombie processes
I use this to shutdown tor.![изображение](https://user-images.githubusercontent.com/69985987/228876957-d5c6d4f3-4697-429a-8d90-68fac79755c7.png)
And get zombie processes![изображение](https://user-images.githubusercontent.com/69985987/228876984-200c96a1-fff3-42bd-9e69-cea203575e5d.png)
I use this to run tor and i dont have access to proc after![изображение](https://user-images.githubusercontent.com/69985987/228881388-84253edf-5dd6-4458-afeb-eee0553d4af5.png)