summaryrefslogtreecommitdiffstats
path: root/regress/multiplex.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-04-25 06:48:22 +0200
committerDarren Tucker <dtucker@zip.com.au>2005-04-25 06:48:22 +0200
commitfaefd2e73d242a1bb482a81a33e3b7434aa72733 (patch)
tree333c6df2269b4478276a67525d39cfcd1dc7c1ad /regress/multiplex.sh
parent - (dtucker) [INSTALL configure.ac] Make zlib version check test for 1.1.4 or (diff)
downloadopenssh-faefd2e73d242a1bb482a81a33e3b7434aa72733.tar.xz
openssh-faefd2e73d242a1bb482a81a33e3b7434aa72733.zip
- (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@
Diffstat (limited to 'regress/multiplex.sh')
-rw-r--r--regress/multiplex.sh2
1 files changed, 1 insertions, 1 deletions
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