Bug 22532 - [patch] /dev/dsp is sometimes busy when not opened...
Summary: [patch] /dev/dsp is sometimes busy when not opened...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 4.1.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-02 09:40 UTC by zach
Modified: 2001-11-25 11:41 UTC (History)
0 users

See Also:


Attachments
file.diff (511 bytes, patch)
2000-11-02 09:40 UTC, zach
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.