[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 59183] New: arts_suspend() returns 0 if arts doesn't have DSP
From:       David Walser <luigiwalser () yahoo ! com>
Date:       2003-05-31 17:25:05
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=59183     
           Summary: arts_suspend() returns 0 if arts doesn't have DSP device
                    open
           Product: arts
           Version: 1.1.1
          Platform: Mandrake RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: stefan@space.twc.de
        ReportedBy: luigiwalser@yahoo.com


Version:           1.1.1 (using KDE KDE 3.1.1)
Installed from:    Mandrake RPMs
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.2 3.2.2-5mdk) 
OS:          Linux

arts_suspend() will have artsd let go of the DSP device if it has it open.  If it's \
sucessful, the postcondition is that artsd doesn't have the DSP device open, and 1 is \
returned.

There is one condition where this postcondition is broken, that's when you call \
arts_suspend() and artsd didn't have the DSP device open in the first place.  As far \
as trying to get artsd to let go of the device, it shouldn't matter whether it had it \
open in the first place or not, if arts can manage to make sure it's not holding the \
device (whether it needs to do any work to make that happen or not), 1 should be \
returned.

0 should only be returned when, as it said in the header file, "there were active \
non-suspendable modules," meaning artsd has the device open and is not going to give \
it up.

arts_suspend() should not return 0 when arts doesn't have the DSP device open.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic