[tor-bugs] #26999 [Core Tor/Tor]: tor_api: Some way to capture stdout/stderr

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 31 14:41:28 UTC 2018


#26999: tor_api: Some way to capture stdout/stderr
--------------------------+----------------------------------
 Reporter:  nickm         |          Owner:  (none)
     Type:  enhancement   |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: unspecified
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:  #25510        |         Points:
 Reviewer:                |        Sponsor:  Sponsor8-can
--------------------------+----------------------------------

Comment (by nickm):

 If this is just about log messages, it's easier to do.

 If it's about _everything_ sent over stdout or stderr, that is less easy.

 A callback is not what I'd favor here, since libtorrunner.a couldn't
 support it easily, and since introducing a system of callbacks would
 complicated the control flow between tor and its embedding applications.
 But maybe we can make capturing this stuff easier.  The early-log-messages
 ideas in #10059 might help here, as might some mechanism to have the
 owningcontrollerfd feature start out with a preconfigured set of events.

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


More information about the tor-bugs mailing list