@alsa, Adding an option to /etc/conf.d/alsasound to terminate processes on stop. The var name might need a better name. Leave the default to on. # TERMINATE_ON_STOP # Do you want to kill any processes using ALSA when alsasound stops? # Warning: may create some unexpected window behavior or # crash running applications # no - Do not terminate ALSA processes # yes - Kill running processes TERMINATE_ON_STOP="yes" init script: stop() { if [ ! -d /proc/asound ] ; then eerror "ALSA is not loaded" return 0 fi [ "${SAVE_ON_STOP}" = "yes" ] && save if [ "${TERMINATE_ON_STOP}" = "yes" ] ; then ebegin "Killing processes using ALSA" terminate eend 0 fi If no objections, I'll commit later.
Excellent idea. I'm all for it.
Updated in CVS