[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #2003 [Tor Relay]: Hibernation Soft and Hard Limits Reached Simultaneously
#2003: Hibernation Soft and Hard Limits Reached Simultaneously
-----------------------+----------------------------------------------------
Reporter: BarkerJr | Owner: Sebastian
Type: defect | Status: assigned
Priority: normal | Milestone: Tor: 0.2.2.x-final
Component: Tor Relay | Version: Tor: unspecified
Keywords: | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
Comment(by Sebastian):
yuck yuck yuck.
We have options_act_reversible() and options_act(), the former is called
before the latter. Inside options_act_reversible() we drop privileges, and
inside options_act() we configure_accounting(). This is bad, because we
have to have accounting configured before we can decide whether to open
listeners, and we have to do that before we drop privileges. But to
configure_accounting(), we need to have our state file parsed, and we
currently do that after dropping privs for a good reason...
Any smart ideas?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2003#comment:34>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs