-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance Tor process cleanup with __OwningControllerProcess and TAKEOWNERSHIP #14044
Comments
Verified
Verified both test cases from the plan in brave/brave-core#7927: Case 1: Browser process crashed
Case 2: Kill Tor launcher utility process
Verification passed on
Case 1: Browser process crashed
Case 2: Kill Tor launcher utility process
Verified passed with
Verified test plan from brave/brave-core#7927 Scenario 1 - Browser process crashed
![]()
![]() Scenario 2 - Kill Tor launcher utility process
![]()
![]()
|
Hi @darkdh - do you think this should be tested on all supported desktop platforms? If so, we can add the |
yep, we should test it on all desktop platforms |
We currently rely on cleaning orphaned Tor process by pidFile when launching the new Tor process
And we can prevent orphaned Tor process by launching Tor with option
__OwningControllerProcess
plus utility process pid and when control connection established sendTAKEOWNERSHIP
so no matter how we crash Brave browser process or kill utility process, there shouldn't be any orphaned Tor process lefthttps://github.com/torproject/torspec/blob/d3a4dadac149c2be162344a6c2286653b8ac3753/control-spec.txt#L1525
The text was updated successfully, but these errors were encountered: