# Calculate comment=# chmod=0755 pkg(sys-apps/calculate-utils[desktop])!=
#!/bin/sh
#
if pgrep -f 'xdm/xdm --logout'
then
	xmessage -buttons "" "Please wait to ending sessions" &
	XMESPID=$!
	while pgrep -f 'xdm/xdm --logout'
	do
		sleep 1
	done
	kill -9 $XMESPID &>/dev/null
fi
