mirror of
https://github.com/fluencelabs/redis
synced 2025-06-30 17:31:33 +00:00
catch exceptions in the server proc, to be able to kill the entire chain of running servers
This commit is contained in:
@ -92,4 +92,12 @@ proc main {} {
|
||||
cleanup
|
||||
}
|
||||
|
||||
main
|
||||
if {[catch { main } err]} {
|
||||
if {[string length $err] > 0} {
|
||||
# only display error when not generated by the test suite
|
||||
if {$err ne "exception"} {
|
||||
puts $err
|
||||
}
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user