From 4c54528f0fb56dec1373ead376a017b59743b04e Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Sat, 12 Nov 2022 20:35:34 +0200 Subject: 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 --- tests/support/util.tcl | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/support') 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 "**" $err]} { return 0 } return 1 } } -- cgit v1.2.1