Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 455458 | Differences between
and this patch

Collapse All | Expand All

(-)a/lib/rc/sh/rc-mount.sh (+10 lines)
Lines 41-46 Link Here
41
		retry=4 # Effectively TERM, sleep 1, TERM, sleep 1, KILL, sleep 1
41
		retry=4 # Effectively TERM, sleep 1, TERM, sleep 1, KILL, sleep 1
42
		while ! LC_ALL=C $cmd "$mnt" 2>/dev/null; do
42
		while ! LC_ALL=C $cmd "$mnt" 2>/dev/null; do
43
			if type fuser >/dev/null 2>&1; then
43
			if type fuser >/dev/null 2>&1; then
44
				timeout=60
45
				while true;do
46
					sleep 3s;
47
					if [ "$timeout" -le 0 ];then
48
						pid_of_user="$(ps -A -o pid,comm,args|grep "fuser $f_opts "$mnt""|awk '$2 !~ /grep/ {print $1}')"
49
						[ -n "$pid_of_user" ] && kill -KILL "$pid_of_user"
50
						break
51
					fi
52
					let timeout-=3
53
				done &
44
				pids="$(fuser $f_opts "$mnt" 2>/dev/null)"
54
				pids="$(fuser $f_opts "$mnt" 2>/dev/null)"
45
			fi
55
			fi
46
			case " $pids " in
56
			case " $pids " in

Return to bug 455458