https://qa.mandrakesoft.com/show_bug.cgi?id=746
Product: apm-scripts
Component: program
Summary: sound suspend script should call lsof -n
Version: 0.1-3mdk
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: P2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
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`
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.