Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 222267
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo ALSA team <alsa-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Steve Dibb <beandog@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 222267 depends on: Show dependency tree
Bug 222267 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-05-15 14:51 0000
@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.

------- Comment #1 From Tony Vroon 2008-05-15 15:02:04 0000 -------
Excellent idea. I'm all for it.

------- Comment #2 From Steve Dibb 2008-05-15 18:16:36 0000 -------
Updated in CVS

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug