Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

device busy

Status
Not open for further replies.

AHinMaine

ISP
Nov 27, 2002
264
US
# /usr/local/bin/play /usr/local/lib/TkDesk/sounds/metal.au
sox: Can't open output file '/dev/dsp': Device busy

How do I figure out what is holding onto this?

I tried
Code:
lsof
and
Code:
lsof -D r
but that doesn't show me anything related.

Running FreeBSD 4.7-RELEASE-p6 #0. --
Andy
 
fstat is the equiv, but doesn't show me anything for /dev/dsp or /dev/pcm0
Code:
FSTAT(1)                FreeBSD General Commands Manual               FSTAT(1)

NAME
     fstat - file status

SYNOPSIS
     fstat [-fmnv] [-M core] [-N system] [-p pid] [-u user] [file ...]

DESCRIPTION
     The fstat utility identifies open files.  A file is considered open by a
     process if it was explicitly opened, is the working directory, root
     directory, active executable text, or kernel trace file for that process.
     If no options are specified, fstat reports on all open files in the sys-
     tem.
--
Andy
 
Sorry, Andy, not sure what's going on here. Have you tried posting in the BSD forum on tek-tips? Some BSD guru might be able to help. Cheers.
 
Just in case anyone encounters this thread looking for help, I finally figured out the issue.

Once I finally messed with it enough, I got it to tell me that the audio was being held hostage by XFree86.

Didn't help me much, but shortly after, I noticed exactly when I would lose my sound. It was when I ran tkdesk. So, I looked in and tkdesk was running the play command with the & after it. I knocked off the & and all was well! --
Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top