Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2002 14:52:50 -0800 (PST)
From:      Fuyuhiko Maruyama <fuyuhik8@is.titech.ac.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/34806: esd from esound-0.2.23 port doesn't connect clients via UNIX domain sockets.
Message-ID:  <200202102252.g1AMqoh24229@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         34806
>Category:       ports
>Synopsis:       esd from esound-0.2.23 port doesn't connect clients via UNIX domain sockets.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 10 15:00:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Fuyuhiko Maruyama
>Release:        4.5-STABLE
>Organization:
Tokyo Institute of Technology
>Environment:
FreeBSD tripper.private 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Feb  9 09:43:50 JST 2002     maruyama@tripper.private:/usr/obj/usr/src/sys/TRIPPER  i386
   
>Description:
The esd daemon from current ports of audio/esound for
esound-0.2.23 never accept connections from clients via
UNIX domain sockets because codes related to connection,
int esd_open_sound( const char *host ) in esdlib.c, always
skip uses UNIX domain socket.

The code sequence of esd_open_sound() to determine whether
it can connect esd via UNIX domain socket seems to be wrong.
The very part to select UNIX domain socket, assigning 1 to
use_unix, might be always skipped because the condition
'!(host && *host)' almost always be false on X environment.

The esound behaves there's no problem if esd is invoked
with '-as' option because it silently fall backs to use
direct handling of /dev/dsp but it isn't
the way esound intended.
>How-To-Repeat:
Install esound using ports.

run esd and then, play any sound using esd's client:
% esd &
% esdplay soundfile
The result is
/dev/dsp: Device busy


>Fix:
I have made a simple patch to replaced
ports/audio/esound/files/patch-ad

The patch file is placed at my website,
http://matsu-www.is.titech.ac.jp/~maruyama/esound-patch-ad

>Release-Note:
>Audit-Trail:
>Unformatted:

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202102252.g1AMqoh24229>