#
# Writing to a file that is being unlinked
#
TEST=`basename $0`

if [ "$1" = COOKIE ]; then
	sleep 5
	rm -f testfile
	exit 0
fi

interrupt -ns HUP -t 60 -m "${TEST}a (write/unlink)" \
	-- writer -v -c 1024 -i 1024 -l 16m -f testfile \
	-- /bin/sh $0 COOKIE

interrupt -ns HUP -t 60 -m "${TEST}b (write/unlink)" \
	-- writer -sv -c 1024 -i 1024 -l 16m -f testfile \
	-- /bin/sh $0 COOKIE
rm -f testfile
