lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPossible bug in 2.2.x sound code
Hi,

This is either a bug or the behavior of things have changed. If the
programming interface has changed, could someone let me know how I can
lock this thing properly.

It seems on Linux 2.0, only one process can have the dsp device open, with
2.2 however, it silently lets you open the device even if it's busy. It
will block until the first process closes.

Example:
Linux 2.0.36
viper:/dev$ cat >dsp0&
[1] 11539
viper:/dev$ cat >dsp0&
[2] 11540

[1]+ Stopped cat >dsp0
viper:/dev$ bash: dsp0: Device or resource busy
fg 1
cat >dsp0

[2] Exit 1 cat >dsp0
viper:/dev$

Linux 2.2.3:
continuum:/dev$ cat >dsp0&
[1] 20643
continuum:/dev$ cat >dsp0&
[2] 20644
continuum:/dev$ cat >dsp0&
[3] 20645
continuum:/dev$

No error. It this right?

--
Shane Wegner: shane@cm.nu
Tel: (604) 930-0530
Sysadmin, Continuum Systems: http://www.cm.nu
Personal website: http://www.cm.nu/~shane
ICQ UIN: 120000
PGP: keyid: 2048/F5C2BD91
Fingerprint: 8C 48 B9 D8 53 BB D8 EF
76 BB DB A2 1C 0D 1D 87
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.031 / U:0.968 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site