From: dtucker Date: Mon, 25 Apr 2005 04:48:22 +0000 (+0000) Subject: - (dtucker) [regress/multiplex.sh] Use "kill -0 $pid" to check for the X-Git-Tag: V_4_1_P1~15 X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/commitdiff_plain/a8539f66aef3ef34ecab4cec0a04dab5bf46ee5f - (dtucker) [regress/multiplex.sh] Use "kill -0 $pid" to check for the existence of a process since it's more portable. Found by jbasney at ncsa.uiuc.edu; ok tim@ --- diff --git a/ChangeLog b/ChangeLog index 4cee87a4..dd14be86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +20050425 + - (dtucker) [regress/multiplex.sh] Use "kill -0 $pid" to check for the + existence of a process since it's more portable. Found by jbasney at + ncsa.uiuc.edu; ok tim@ + 20050424 - (dtucker) [INSTALL configure.ac] Make zlib version check test for 1.1.4 or 1.2.1.2 or higher. With tim@, ok djm@ diff --git a/regress/multiplex.sh b/regress/multiplex.sh index e8cc1ac5..63a5c623 100644 --- a/regress/multiplex.sh +++ b/regress/multiplex.sh @@ -89,6 +89,6 @@ ${SSH} -S $CTL -Oexit otherhost || fail "send exit command failed" # Wait for master to exit sleep 2 -ps -p $MASTER_PID >/dev/null && fail "exit command failed" +kill -0 $MASTER_PID >/dev/null 2>&1 && fail "exit command failed" cleanup