05nelsonm / kmp-tor-resource

Tor resources for kmp-tor
Apache License 2.0
3 stars 0 forks source link

Return handle instead of blocking #85

Closed 05nelsonm closed 1 week ago

05nelsonm commented 3 weeks ago

Current implementation of noexec blocks thread until tor_run_main returns. Instead, a handle should be returned that terminates the thread, unloads libtor, and returns the result.

This is needed so that, in the event a control connection cannot be established, or a startup sequence failure occurs, tor can be stopped (much like killing it as if it were running as a child process).