From alsa-devel-owner@alsa.jcu.cz  Tue May 26 16:01:43 1998
Received: from entry.jcu.cz (perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.8.8/8.8.8) with SMTP id PAA29505;
	Tue, 26 May 1998 15:59:47 +0200
Date: Tue, 26 May 1998 15:59:47 +0200 (MET DST)
From: Jaroslav Kysela <perex@jcu.cz>
To: Christopher Butler <chrisb@sandy.force9.co.uk>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: [BUG] proc problems
In-Reply-To: <199805242049.UAA00488@sandy.force9.co.uk>
Message-ID: <Pine.LNX.3.96.980526155925.6330M-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Sun, 24 May 1998, Christopher Butler wrote:

> Hi!
> 
> The following code will produce a D state process (driver 0.1.2,
> kernel 2.1.96)
> 
> -- Cut --
> #include <sys/types.h>
> #include <sys/stat.h>
> #include <fcntl.h>
> 
> int main()
> {
>   int a, b;
> 
>   a = open("/proc/sound/cards", O_RDONLY);
>   b = open("/proc/sound/meminfo", O_RDONLY);
> 
>   close(a);
>   close(b);
> }
> -- Cut --
> 
> The second open will never return, as the snd_info_entry_open is
> waiting for the 'info' mutex to go down. Hence your D state process,
> and a sound module you can't get rid of.
> 
> No fix, as I don't really know how to go about it :)

OK. Fixed in 0.1.3...

				Jaroslav

-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


