[tor-bugs] #30257 [Core Tor/Stem]: Propagate USR1 and ABRT signals from stem tests through to tor
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Apr 22 17:38:11 UTC 2019
#30257: Propagate USR1 and ABRT signals from stem tests through to tor
-----------------------------------+------------------------------------
Reporter: teor | Owner: atagar
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.2.9.x-final
Component: Core Tor/Stem | Version: Tor: 0.2.4.8-alpha
Severity: Normal | Resolution:
Keywords: tor-ci-fail-sometimes | Actual Points:
Parent ID: #29437 | Points:
Reviewer: | Sponsor:
-----------------------------------+------------------------------------
Comment (by atagar):
Hi teor. In theory propagating the signal to our tor process should be
easy. In the runner I tried adding the following...
{{{
try:
integ_runner = test.runner.get_runner()
os.kill(integ_runner.get_pid(), sig)
except test.runner.RunnerStopped:
pass # integ testing tor instance isn't running
except OSError as exc:
if exc.errno == errno.ESRCH:
pass # already exited, no such process
raise exc
}}}
However, when I send a SIGABRT while invoking the integ tests things don't
terminate as I'd expect. This is gonna need some more investigation on my
side.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30257#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list