#lctl set_param debug=0
#lctl set_param debug=+trace
lctl debug_daemon stop
for i in `seq 1 $1`;
do
	lctl clear
	rm /tmp/eintrlog
	lctl debug_daemon start /tmp/eintrlog 5000
	lctl mark "starting"
	./a.out
	if [ $? -eq 1 ];
	then
	lctl mark "eintr: stopped"
	lctl debug_daemon stop
	rm output
	break;
	fi
	rm output
	lctl debug_daemon stop
done
lctl debug_daemon stop
