mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
check for memory leaks before killing a server
This commit is contained in:
parent
4fb6d00c97
commit
239515bcce
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user