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 (-1 / +2 lines)
Lines 41-47 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
				pids="$(fuser $f_opts "$mnt" 2>/dev/null)"
44
				timeout=60
45
				pids="$(timeout -s KILL -k 10 "$timeout" fuser $f_opts "$mnt" 2>/dev/null)"
45
			fi
46
			fi
46
			case " $pids " in
47
			case " $pids " in
47
				*" $$ "*)
48
				*" $$ "*)

Return to bug 455458