From owner-freebsd-current@FreeBSD.ORG Sat Jan 24 01:41:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DDB216A4CE for ; Sat, 24 Jan 2004 01:41:52 -0800 (PST) Received: from email07.aon.at (WARSL402PIP8.highway.telekom.at [195.3.96.97]) by mx1.FreeBSD.org (Postfix) with SMTP id CC3C743D2D for ; Sat, 24 Jan 2004 01:41:50 -0800 (PST) (envelope-from shoesoft@gmx.net) Received: (qmail 286644 invoked from network); 24 Jan 2004 09:41:48 -0000 Received: from m094p019.dipool.highway.telekom.at (HELO ?62.46.1.179?) ([62.46.1.179]) (envelope-sender ) by 172.18.5.236 (qmail-ldap-1.03) with SMTP for ; 24 Jan 2004 09:41:48 -0000 From: Stefan Ehmann To: current@FreeBSD.org Content-Type: text/plain Message-Id: <1074937301.2959.7.camel@shoeserv.freebsd> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sat, 24 Jan 2004 10:41:42 +0100 Content-Transfer-Encoding: 7bit Subject: write(2) lc_r problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 09:41:52 -0000 I'm trying to write a small sound application and run across a problem on CURRENT. It's very basic at the moment. It simply reads pcm data from a file and uses write(2) on /dev/dsp. But as soon as I link the program with -lc_r there's always about 1 second delay before a write call - which makes it pretty unusable for playing sound. It should be easy reproducable if you link audio/waveplay with -lc_r. This doesn't happen in either FreeBSD 4.9, Knoppix or CURRENT if linked with -lkse or -lthr. Am I'm missing something basic when using write together with lc_r or ist this a bug in CURRENT?