Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
239515bc
Commit
239515bc
authored
May 14, 2010
by
Pieter Noordhuis
Browse files
check for memory leaks before killing a server
parent
4fb6d00c
Changes
1
Show whitespace changes
Inline
Side-by-side
test/support/server.tcl
View file @
239515bc
...
...
@@ -10,6 +10,15 @@ proc error_and_quit {config_file error} {
proc kill_server config
{
set pid
[
dict get $config pid
]
# check for leaks
catch
{
if
{[
string match
{
*Darwin*
}
[
exec uname -a
]]}
{
test
{
Check for memory leaks
}
{
exec leaks $pid
}
{
*0 leaks*
}
}
}
# kill server and wait for the process to be totally exited
exec kill $pid
while 1
{
...
...
Write
Preview
Markdown
is supported
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