Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
torflow
Commits
704f1a8f
Unverified
Commit
704f1a8f
authored
Nov 10, 2017
by
teor
Browse files
Make p global in the sigterm handler
The previous code worked on some python versions, but not on others. Fixes
#24216
.
parent
ec9ce226
Changes
1
Hide whitespace changes
Inline
Side-by-side
NetworkScanners/BwAuthority/bwauthority.py
View file @
704f1a8f
...
...
@@ -58,6 +58,7 @@ def main(argv):
plog
(
'WARN'
,
'Child process returned %s'
%
p
.
returncode
)
def
sigterm_handler
(
signum
,
frame
):
global
p
if
p
:
p
.
kill
()
exit
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment