Commit b313fa41 authored by sundb's avatar sundb Committed by Oran Agra
Browse files

Fix alpine tests (partial #12035)

This is a partial cherry-pick from Redis 7.2

1) Fixed `ps -p [pid]`  doesn't output `<defunct>` when using procps 4.x causing `replication
  child dies when parent is killed - diskless` test to fail.

(cherry picked from commit 42c8c618)
(cherry picked from commit 63fc6c87071d12e3577fc383d5a3f25c60423c8e)
parent f613873d
......@@ -569,7 +569,7 @@ proc get_child_pid {idx} {
}
proc process_is_alive pid {
if {[catch {exec ps -p $pid} err]} {
if {[catch {exec ps -p $pid -f} err]} {
return 0
} else {
if {[string match "*<defunct>*" $err]} { return 0 }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment