diff options
author | Oran Agra <oran@redislabs.com> | 2022-11-12 20:35:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 20:35:34 +0200 |
commit | 4c54528f0fb56dec1373ead376a017b59743b04e (patch) | |
tree | 58e6296c26cfb103e29b831f962d097d9414e3db /tests/support/util.tcl | |
parent | 6617f1704ba9ce6d119c033c10cbe1450f0eeedf (diff) | |
download | redis-4c54528f0fb56dec1373ead376a017b59743b04e.tar.gz |
fixes for fork child exit and test: #11463 (#11499)
Fix a few issues with the recent #11463
* use exitFromChild instead of exit
* test should ignore defunct process since that's what we expect to
happen for thees child processes when the parent dies.
* fix typo
Co-authored-by: Binbin <binloveplay1314@qq.com>
Diffstat (limited to 'tests/support/util.tcl')
-rw-r--r-- | tests/support/util.tcl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/support/util.tcl b/tests/support/util.tcl index a7332d29c..22774868c 100644 --- a/tests/support/util.tcl +++ b/tests/support/util.tcl @@ -631,6 +631,7 @@ proc process_is_alive pid { if {[catch {exec ps -p $pid} err]} { return 0 } else { + if {[string match "*<defunct>*" $err]} { return 0 } return 1 } } |