[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #28179 [Core Tor/Tor]: Handle output from PT processes with the event loop
#28179: Handle output from PT processes with the event loop
------------------------------+--------------------------------
Reporter: ahf | Owner: (none)
Type: enhancement | Status: new
Priority: Medium | Milestone: Tor: 0.3.6.x-final
Component: Core Tor/Tor | Version: Tor: unspecified
Severity: Normal | Keywords:
Actual Points: | Parent ID: #25502
Points: | Reviewer:
Sponsor: Sponsor8 |
------------------------------+--------------------------------
Currently the output from stdout/stderr of a PT process is only read
during the startup of the process. The reading process uses read() on a
non-blocking socket, which currently seems to work, but have proved to be
flaky.
We should ensure that PT processes' output can be read all the time.
On Windows we cannot attach the pipes to the main loop because of
limitations of the `select()` API, so we have to do something slightly
worse such as reading from the stdout/stderr handle via a timer as long as
the processes are alive.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28179>
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