Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 338000 Details for
Bug 455458
sys-process/psmisc: fuser hangs if processes have files open on dead remotes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add timeout to fuser command
lib_rc_sh_rc-mount-sh_0.11.8.patch (text/plain), 685 bytes, created by
Frieder Bürzele
on 2013-02-05 13:22:22 UTC
(
hide
)
Description:
add timeout to fuser command
Filename:
MIME Type:
Creator:
Frieder Bürzele
Created:
2013-02-05 13:22:22 UTC
Size:
685 bytes
patch
obsolete
>--- a/lib/rc/sh/rc-mount.sh 2013-02-04 15:06:20.492478073 +0100 >+++ b/lib/rc/sh/rc-mount.sh 2013-02-05 11:15:12.159854818 +0100 >@@ -41,6 +41,16 @@ > retry=4 # Effectively TERM, sleep 1, TERM, sleep 1, KILL, sleep 1 > while ! LC_ALL=C $cmd "$mnt" 2>/dev/null; do > if type fuser >/dev/null 2>&1; then >+ timeout=60 >+ while true;do >+ sleep 3s; >+ if [ "$timeout" -le 0 ];then >+ pid_of_user="$(ps -A -o pid,comm,args|grep "fuser $f_opts "$mnt""|awk '$2 !~ /grep/ {print $1}')" >+ [ -n "$pid_of_user" ] && kill -KILL "$pid_of_user" >+ break >+ fi >+ let timeout-=3 >+ done & > pids="$(fuser $f_opts "$mnt" 2>/dev/null)" > fi > case " $pids " in
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 455458
:
337998
| 338000 |
338002
|
338070