From: Takashi Iwai Subject: Re: Third time: Unlink PCM resource ? Date: Mon, 25 May 2009 20:18:31 +0200 Message-ID: References: <4A1AB98B.9010604@yellowcouch.org> <4A1ADAEF.3070803@yellowcouch.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 6B42024488 for ; Mon, 25 May 2009 20:18:31 +0200 (CEST) In-Reply-To: <4A1ADAEF.3070803@yellowcouch.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Werner Van Belle Cc: "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org At Mon, 25 May 2009 19:52:47 +0200, Werner Van Belle wrote: > > > But, in general, sharing the same DSP device among different processes > > don't sound like a good idea... > > > > I agree, but when one forks off a child the parent pcm handle > automatically passes to the child. If there is a possibility _not_ to > pass the PCM handle to the forked process then I would be quite happy as > well. You can control it via fcntl(). See fcntl(2) man page. Takashi