From: =?iso-8859-1?q?Chris=20Rankin?= Subject: Re: [BUG] alsa-lib leaves sound device open for child processes Date: Fri, 7 Feb 2003 13:58:48 +0000 (GMT) Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20030207135848.567.qmail@web40611.mail.yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Paul Davis Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --- Paul Davis wrote: > there's a little detail you're forgetting. unless > the hw supports multi-open and the current number of > subunits is below the limit of the number of opens, > then having the descriptor will cause all other > attempts to access the device to block (unless they > explicitly request non-blocking open, which means > they then have to unset that flag for normal > application operation I hadn't forgotten. The situation to which you are referring is called "a bug in the *application*". Determining the destinies of resources, delivery of signals etc when spawning child processes is the application-programmer's responsibility. And yes, I have tracked down bugs like this before. And I *did* fix the application. Chris __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com