From owner-freebsd-questions@FreeBSD.ORG Sat Jan 24 09:03:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D786416A4CE for ; Sat, 24 Jan 2004 09:03:03 -0800 (PST) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id C180E43D62 for ; Sat, 24 Jan 2004 09:02:18 -0800 (PST) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (localhost [127.0.0.1]) by fw.farid-hajji.net (Postfix) with ESMTP id E4B0F40822; Sat, 24 Jan 2004 18:00:59 +0100 (CET) From: Cordula's Web To: geert.hendrickx@ua.ac.be In-reply-to: <200401241616.57830.geert.hendrickx@ua.ac.be> (message from Geert Hendrickx on Sat, 24 Jan 2004 16:16:57 +0100) X-Mailer: Emacs-21.3.1/FreeBSD-4.9-STABLE References: <200401241454.56184.geert.hendrickx@ua.ac.be> <200401241616.57830.geert.hendrickx@ua.ac.be> Message-Id: <20040124170059.E4B0F40822@fw.farid-hajji.net> Date: Sat, 24 Jan 2004 18:00:59 +0100 (CET) cc: freebsd-questions@freebsd.org Subject: Re: /dev/dsp: Device busy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cpghost@cordula.ws List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 17:03:04 -0000 > > > /dev/dsp: Device busy > > esd is the culprit. > But esd is not running... I checked it with ps. I'm having the same problem with mpg123, which uses esd: $ ps ax|grep esd $ mpg123 somefile.mp3 /dev/dsp: Device busy audio: Device busy $ ps ax|grep esd 11041 ?? Ss 0:00.14 esd -terminate -nobeeps -as 2 -spawnfd 5 $ kill 11041 $ ps ax|grep esd $ mpg123 somefile.mp3 This happens every time. It's definitively esd that doesn't let go of /dev/dsp, and for some reason, can't accept connections on its unix socket /tmp/.esd/socket. It's perhaps related to permissions (who starts esd)? I dunno exactly. I'm using a brute-force work-around here: #!/bin/sh # playmp3.sh -- brute force mpg123 (Bug: /dev/dsp: Device busy) until (mpg123 "$1") do sleep 1; done Ugly, but better than nothing. -- Cordula's Web. http://www.cordula.ws/