https://qa.mandrakesoft.com/show_bug.cgi?id=746
[EMAIL PROTECTED] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From [EMAIL PROTECTED] 2003-01-09 00:34 -------
Fixed in cvs of apm-scripts
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
description:
The sound suspend script uses "lsof", but it should use "lsof -n" to avoid a
long delay before suspending if the (physical) network connection was already
removed.
This small patch does this:
--- 1sound.org 2001-09-10 10:28:58.000000000 +0200
+++ 1sound 2003-01-06 13:44:54.000000000 +0100
@@ -22,7 +22,7 @@
logger "apmscript: Program $SOUNDPROG ($SOUNDPID) of user $SOUNDUSER
on display $SOUNDDISPLAY terminated."
done
fi
- for n in `lsof |grep /dev|grep ' 14,'|sed -e 's/ \+/|/g'|cut '-d|' -f1-3`; do
+ for n in `lsof -n|grep /dev|grep ' 14,'|sed -e 's/ \+/|/g'|cut '-d|' -f1-3`; do
SOUNDPROG=`echo $n |cut '-d|' -f1`
SOUNDPID=`echo $n |cut '-d|' -f2`
SOUNDUSER=`echo $n |cut '-d|' -f3`