From 98a66bca2b9c8052e2abad448ae75d80b70665d5 Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 11 Aug 2017 21:36:05 +0000 Subject: Add a wait call between different invocations of snmpd test runs to avoid failed to bind errors due to SNMP UDP socket: Address already in use. Discussed and ok jca@. --- regress/usr.sbin/snmpd/snmpd.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/regress/usr.sbin/snmpd/snmpd.sh b/regress/usr.sbin/snmpd/snmpd.sh index d4d435edbbf..7172561f7ae 100644 --- a/regress/usr.sbin/snmpd/snmpd.sh +++ b/regress/usr.sbin/snmpd/snmpd.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: snmpd.sh,v 1.1 2017/08/11 17:45:02 rob Exp $ +# $OpenBSD: snmpd.sh,v 1.2 2017/08/11 21:36:04 rob Exp $ #/* # * Copyright (c) Rob Pierce # * @@ -150,6 +150,7 @@ then fi kill $(pgrep snmpd) >/dev/null 2>&1 +wait # # # # # CONFIG TWO # # # # # @@ -192,6 +193,7 @@ then fi kill $(pgrep snmpd) >/dev/null 2>&1 +wait # # # # # CONFIG THREE # # # # # @@ -225,6 +227,7 @@ then fi kill $(pgrep snmpd) >/dev/null 2>&1 +wait # # # # # CONFIG FOUR # # # # # -- cgit v1.2.3