From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 2 20:55:46 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF9E216A41F for ; Wed, 2 Nov 2005 20:55:46 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id DF66A43D49 for ; Wed, 2 Nov 2005 20:55:45 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: (qmail 82267 invoked by uid 0); 2 Nov 2005 20:55:43 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 2 Nov 2005 20:55:43 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.4/8.13.4) with ESMTP id jA2Kqfgx027694; Thu, 3 Nov 2005 04:52:41 +0800 (MYT) (envelope-from dinesh@alphaque.com) Message-ID: <43692719.90805@alphaque.com> Date: Thu, 03 Nov 2005 04:52:41 +0800 From: Dinesh Nair User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20050915 MIME-Version: 1.0 To: Warner Losh References: <4361044B.50807@alphaque.com> <20051027.205250.55834228.imp@bsdimp.com> <43690424.1040904@alphaque.com> <20051102.121248.74711520.imp@bsdimp.com> In-Reply-To: <20051102.121248.74711520.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: locking in a device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 20:55:47 -0000 On 11/03/05 03:12 Warner Losh said the following: > Yes. if you tsleep with signals enabled, the periodic timer will go > off, and you'll return early. This typically isn't what you want > either. looks like i've got a lot of work to do, poring thru all the ioctls for the device and trying to use another method to wait instead of tsleep(). > works. If you use libc_r on 5, you'll see exactly this behavior. If > you use libpthread or libthr, you won't. i use gcc -pthread, so it's libc_r on 4.x. what does 'gcc -pthread' link to on 5.x ? -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.alphaque.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+