mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
test suite: clean server pids after server crashed (#12639)
when a server in the test suite crashes and is restarted by redstart_server, we didn't clean it's pid from the list. we can see that when the corrupt-dump-fuzzer hangs, it has a long list of servers to lean, but in fact they're all already dead.
This commit is contained in:
parent
b784c5375e
commit
f0c1c730d4
1 changed files with 4 additions and 0 deletions
|
|
@ -60,6 +60,10 @@ proc kill_server config {
|
|||
}
|
||||
|
||||
check_sanitizer_errors [dict get $config stderr]
|
||||
|
||||
# Remove this pid from the set of active pids in the test server.
|
||||
send_data_packet $::test_server_fd server-killed $pid
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue