Bug 22532

Summary: [patch] /dev/dsp is sometimes busy when not opened...
Product: Base System Reporter: zach <zach>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description zach 2000-11-02 09:40:00 UTC
when opening /dev/dsp for reading+writing, the open function sometimes
forgets to reset the read channel busy flag if the open fails (for
example: the write channel was busy, but the read channel was not).

How-To-Repeat: 
#include <fcntl.h>
int
main(void)
{
  open("/dev/dsp", O_WRONLY);
  open("/dev/dsp", O_RDWR);
}

notice that it is now impossible to open /dev/dsp for reading...
Comment 1 iedowse freebsd_committer freebsd_triage 2001-11-17 22:09:45 UTC
State Changed
From-To: open->feedback


Does this problem still exist? The code in dsp.c seems to have 
changed a lot since this was submitted.
Comment 2 Peter Pentchev 2001-11-25 11:34:49 UTC
Added to the PR audit trail..

G'luck,
Peter

-- 
"yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation.

----- Forwarded message from "Zach N. Heilig" <zach@uffdaonline.net> -----

To: <iedowse@FreeBSD.org>
Cc: freebsd-bugs@FreeBSD.org
Subject: Re: kern/22532: [patch] /dev/dsp is sometimes busy when not opened...
From: zach@uffdaonline.net (Zach N. Heilig)
Date: 25 Nov 2001 02:49:38 -0600

<iedowse@FreeBSD.org> writes:

> Synopsis: [patch] /dev/dsp is sometimes busy when not opened...
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: iedowse
> State-Changed-When: Sat Nov 17 14:09:45 PST 2001
> State-Changed-Why: 
> 
> Does this problem still exist? The code in dsp.c seems to have
> changed a lot since this was submitted.
> 
> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22532

Yes, this was actually fixed almost right away.

-- 
Zach Heilig <zach@uffdaonline.net>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message


----- End forwarded message -----
Comment 3 Peter Pentchev freebsd_committer freebsd_triage 2001-11-25 11:41:36 UTC
State Changed
From-To: feedback->closed

Originator confirms the problem was fixed.