[Pkg-alsa-devel] Bug#244068: alsa-base: force-stop option doesn't work properly
Richard Black
Richard Black <therblack@hotmail.com>, 244068@bugs.debian.org
Fri, 16 Apr 2004 09:41:08 -0400
Package: alsa-base
Version: 1.0.4-1
Severity: normal
When a proc is using the sound option, and $ALSA_KILL_MODE" = force, the script /etc/inid.d
trys to execute:
if [ "$ALSA_KILL_MODE" = force ]; then
printf "(terminating processes) "
kill $procs_using_sound
sleep 2
kill -9 $procs_using_sound
else
printf "aborting. (sound used by PIDs %s)\n" "$procs_using_sound"
exit 1
fi
after which the modules should be removed.
The problem seems be that if the first kill is successful, the second kill gives
the following error:
Shutting down ALSA (version 1.0.2c): (terminating processes) ./alsa: line 146: kill: (11694) - No such process
....and so /etc/alsa exits. This implies that the modules are not removed, and in my case this means
no sound when they are restarted.
As background, I seem to need my modules to be unloaded and loaded when I suspend my
laptop. The above problem stops them being unloaded.
cheers
Richard
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.4
Locale: LANG=C, LC_CTYPE=C
Versions of packages alsa-base depends on:
ii alsa-utils 1.0.4-1 Advanced Linux Sound Architecture
ii debconf 1.4.22 Debian configuration management sy
ii debianutils 2.8.1 Miscellaneous utilities specific t
ii lsof 4.71-1 List open files.
ii module-init-tools 3.0-pre10-2 tools for managing Linux kernel mo
ii modutils 2.4.26-1 Linux module utilities
ii procps 1:3.2.1-2 The /proc file system utilities
ii psmisc 21.4-1 Utilities that use the proc filesy
-- debconf information:
alsa-common/card-list:
* alsa-base/alsactl_store_on_shutdown: true
* alsa-base/current_card: done
* alsa-base/force_stop_alsa_before_suspend: stop-procs
* alsa-base/card_list: cs46xx done