#
# Copyright (C) 2000, 2001, 2004, 2007, 2012, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
status=0
(
$SHELL -c "while true
sed 's/^/I:ns3 /';
sleep 1
done" & echo $! >reload.pid
) &
do
done
echo "I:waiting for background processes to finish"
wait
echo "I:killing reload loop"
kill `cat reload.pid`
echo "I:exit status: $status"