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
d97b0527
Commit
d97b0527
authored
Jul 13, 2012
by
Peter Palfrader
Committed by
aagbsn
Oct 13, 2014
Browse files
Only try to kill tor if it is our process and it exists
parent
f0b02bb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
NetworkScanners/BwAuthority/run_scan.sh
View file @
d97b0527
...
...
@@ -21,9 +21,11 @@ done
KILLED_TOR
=
false
if
[
-f
"./data/tor/tor.pid"
]
;
then
PID
=
`
cat
./data/tor/tor.pid
`
kill
$PID
if
[
$?
-eq
0
]
;
then
KILLED_TOR
=
true
if
kill
-0
"
$PID
"
2>/dev/null
;
then
# it is a running process and we may send signals to it
kill
$PID
if
[
$?
-eq
0
]
;
then
KILLED_TOR
=
true
fi
fi
fi
...
...
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