[tor-bugs] #13003 [Onionoo]: Figure out a better strategy to avoid concurrent Onionoo executions

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Aug 30 15:26:13 UTC 2014


#13003: Figure out a better strategy to avoid concurrent Onionoo executions
-------------------------+-----------------
     Reporter:  karsten  |      Owner:
         Type:  defect   |     Status:  new
     Priority:  normal   |  Milestone:
    Component:  Onionoo  |    Version:
   Resolution:           |   Keywords:
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+-----------------

Comment (by Sebastian):

 You could write the pid of the process into the lockfile, and if there's a
 lockfile check that a process with that pid is still running. If it isn't,
 remove the logfile and start over. This is not 100% if the system starts
 another process with the same pid, but should be a lot better. You can
 make it more complex too, but that's probably not warranted

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


More information about the tor-bugs mailing list