diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-02-11 20:41:51 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-02-11 20:41:51 +0000 |
commit | ec5fd09524e6e8736a0679085c2c489b5affca7e (patch) | |
tree | 34f552aa6a9eb9539c3b7ba97b1bdb985f59cb8f /tests | |
parent | 25aa4a3c078bea25d748a491b3ff3317a36d8004 (diff) | |
download | src-test2-ec5fd09524e6e8736a0679085c2c489b5affca7e.tar.gz src-test2-ec5fd09524e6e8736a0679085c2c489b5affca7e.zip |
Notes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/mac/portacl/misc.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/sys/mac/portacl/misc.sh b/tests/sys/mac/portacl/misc.sh index 5a9e67bae74e..9a6320357ea0 100644 --- a/tests/sys/mac/portacl/misc.sh +++ b/tests/sys/mac/portacl/misc.sh @@ -17,6 +17,7 @@ check_bind() { local host idtype name proto port udpflag host="127.0.0.1" + timeout=1 idtype=${1} name=${2} @@ -28,7 +29,7 @@ check_bind() { out=$( case "${idtype}" in uid|gid) - ( echo -n | su -m ${name} -c "nc ${udpflag} -l -w 10 $host $port" 2>&1 ) & + ( echo -n | su -m ${name} -c "nc ${udpflag} -l -w ${timeout} $host $port" 2>&1 ) & ;; jail) kill $$ @@ -37,7 +38,7 @@ check_bind() { kill $$ esac sleep 0.3 - echo | nc ${udpflag} -w 10 $host $port >/dev/null 2>&1 + echo | nc ${udpflag} -w ${timeout} $host $port >/dev/null 2>&1 wait ) case "${out}" in |