From owner-freebsd-questions@FreeBSD.ORG Thu Jun 5 06:54:42 2003 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 3A8A637B401 for ; Thu, 5 Jun 2003 06:54:42 -0700 (PDT) Received: from hotmail.com (law9-f53.law9.hotmail.com [64.4.9.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A6F43FCB for ; Thu, 5 Jun 2003 06:54:37 -0700 (PDT) (envelope-from chaudharyanurag@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 5 Jun 2003 06:54:37 -0700 Received: from 202.144.62.166 by lw9fd.law9.hotmail.msn.com with HTTP; Thu, 05 Jun 2003 13:54:37 GMT X-Originating-IP: [202.144.62.166] X-Originating-Email: [chaudharyanurag@hotmail.com] From: "Anurag Chaudhary" To: freebsd-questions@freebsd.org Date: Thu, 05 Jun 2003 19:24:37 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 05 Jun 2003 13:54:37.0687 (UTC) FILETIME=[00D32070:01C32B6A] Subject: mutex in kld X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 13:54:42 -0000 I am using mutex in a kld. mutex protects an open file so lock and unlock functions are called from open and close functions of the kld repectively. but when i start second instance of an application working on this file, my system hangs. there is no sleep call in the code. can anybody figure out what's the prob. thanx Anurag _________________________________________________________________ Staying fit. It's about being happy! http://server1.msn.co.in/features/stayingfit/index.asp Check out the new mantra.