From alsa-devel-owner@alsa.jcu.cz  Sun May 24 21:52:53 1998
Received: from sandy.force9.co.uk (root@16.usr02.wor.dialup.force9.net [195.166.131.80] (may be forged))
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id VAA28037
	for <alsa-devel@alsa.jcu.cz>; Sun, 24 May 1998 21:51:10 +0200
Received: (from chrisb@localhost)
	by sandy.force9.co.uk (8.8.5/8.8.5) id UAA00488
	for alsa-devel@alsa.jcu.cz; Sun, 24 May 1998 20:49:27 GMT
From: Christopher Butler <chrisb@sandy.force9.co.uk>
Message-Id: <199805242049.UAA00488@sandy.force9.co.uk>
Subject: [BUG] proc problems
To: alsa-devel@alsa.jcu.cz
Date: Sun, 24 May 1998 20:49:26 +0000 (UTC)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

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 :)

--
Chris Butler <chrisb@sandy.force9.co.uk>


