| Summary: | [patch] /dev/dsp is sometimes busy when not opened... | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | zach <zach> | ||||
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.1.1-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
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. 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 ----- State Changed From-To: feedback->closed Originator confirms the problem was fixed. |
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...