diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | regress/multiplex.sh | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -43,6 +43,9 @@ | |||
43 | keyboard-interactive. | 43 | keyboard-interactive. |
44 | 44 | ||
45 | ok markus@ | 45 | ok markus@ |
46 | - dtucker@cvs.openbsd.org 2012/10/05 02:05:30 | ||
47 | [regress/multiplex.sh] | ||
48 | Use 'kill -0' to test for the presence of a pid since it's more portable | ||
46 | 49 | ||
47 | 20121107 | 50 | 20121107 |
48 | - (djm) OpenBSD CVS Sync | 51 | - (djm) OpenBSD CVS Sync |
diff --git a/regress/multiplex.sh b/regress/multiplex.sh index f93ac9a41..1e6cc7606 100644 --- a/regress/multiplex.sh +++ b/regress/multiplex.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: multiplex.sh,v 1.16 2012/09/10 01:51:19 dtucker Exp $ | 1 | # $OpenBSD: multiplex.sh,v 1.17 2012/10/05 02:05:30 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | CTL=/tmp/openssh.regress.ctl-sock.$$ | 4 | CTL=/tmp/openssh.regress.ctl-sock.$$ |
@@ -96,7 +96,7 @@ ${SSH} -F $OBJ/ssh_config -S $CTL -Oexit otherhost >>$TEST_SSH_LOGFILE 2>&1 \ | |||
96 | 96 | ||
97 | # Wait for master to exit | 97 | # Wait for master to exit |
98 | wait $MASTER_PID | 98 | wait $MASTER_PID |
99 | kill -0 $MASTER_PID >/dev/null && fail "exit command failed" | 99 | kill -0 $MASTER_PID >/dev/null 2>&1 && fail "exit command failed" |
100 | 100 | ||
101 | # Restart master and test -O stop command with master using -N | 101 | # Restart master and test -O stop command with master using -N |
102 | verbose "test $tid: cmd stop" | 102 | verbose "test $tid: cmd stop" |
@@ -117,4 +117,4 @@ wait $SLEEP_PID | |||
117 | [ $! != 0 ] || fail "waiting for concurrent command" | 117 | [ $! != 0 ] || fail "waiting for concurrent command" |
118 | wait $MASTER_PID | 118 | wait $MASTER_PID |
119 | [ $! != 0 ] || fail "waiting for master stop" | 119 | [ $! != 0 ] || fail "waiting for master stop" |
120 | kill -0 $MASTER_PID >/dev/null && fail "stop command failed" | 120 | kill -0 $MASTER_PID >/dev/null 2>&1 && fail "stop command failed" |