Bug 112630

Summary: XMMS visualization plugin wrapper doesn't close inherited fds
Product: [Applications] amarok Reporter: Kevin Radloff <radsaq>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.3.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: proposed fix

Description Kevin Radloff 2005-09-15 02:50:11 UTC
Version:           1.3.1 (using KDE KDE 3.4.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

The xmms visualization plugin wrapper doesn't close its inherited fds as it should. This wouldn't be a serious problem in most scenarios, except for the fact that it means the amarok_xmmswrapper2 process keeps the audio device open (which seems to trigger some alsa/dmix bugs where amarok/xine-engine can't reopen the audio device after pausing/changing tracks).
Comment 1 Kevin Radloff 2005-09-15 02:51:24 UTC
Created attachment 12572 [details]
proposed fix
Comment 2 Kevin Radloff 2005-09-17 20:52:45 UTC
Actually, this is a general problem, as scripts are also affected. The solution would seem to be to create KProcess/KProcIO subclasses that override the start() method and close their inherited fds therein.
Comment 3 Alexandre Oliveira 2005-09-17 21:50:48 UTC
Yep, and that's why I'm marking this as a dup of bug #103750.
Let's talk about it there.

*** This bug has been marked as a duplicate of 103750 ***