[tor-bugs] #23848 [Core Tor/Tor]: Replace all exit() calls with return code style

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Oct 13 20:16:34 UTC 2017


#23848: Replace all exit() calls with return code style
------------------------------+-----------------------------------------
     Reporter:  hellais       |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.3.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  tor-mobile,0.3.5-deferrable
Actual Points:                |  Parent ID:  #23684
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+-----------------------------------------
 Currently tor uses inside of various places the `exit()` call, but this is
 not nice when you are using it as a library as it leads to the whole app
 crashing, while we would rather just get an exception or a proper error
 code.

 This involves grepping tor for `exit()` calls and replacing them with
 instead return code style returns.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23848>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list