From faefd2e73d242a1bb482a81a33e3b7434aa72733 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 25 Apr 2005 14:48:22 +1000 Subject: - (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@ --- ChangeLog | 7 ++++++- regress/multiplex.sh | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d2d2f347f..547f0f5b1 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@ @@ -2452,4 +2457,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3747 2005/04/24 07:52:22 dtucker Exp $ +$Id: ChangeLog,v 1.3748 2005/04/25 04:48:22 dtucker Exp $ diff --git a/regress/multiplex.sh b/regress/multiplex.sh index e8cc1ac53..63a5c6238 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 -- cgit v1.2.3