From owner-freebsd-questions@FreeBSD.ORG Sat Jul 22 04:41:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 3045F16A4DA for ; Sat, 22 Jul 2006 04:41:11 +0000 (UTC) (envelope-from george@m5p.com) Received: from mailhost.m5p.com (209-162-215-52.dq1sn.easystreet.com [209.162.215.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9166243D53 for ; Sat, 22 Jul 2006 04:41:10 +0000 (GMT) (envelope-from george@m5p.com) Received: from m5p.com (ssh.m5p.com [IPv6:2001:418:3fd::fb]) by mailhost.m5p.com (8.13.7/8.13.7) with ESMTP id k6M4f8D5062091 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Jul 2006 21:41:09 -0700 (PDT) Received: (from george@localhost) by m5p.com (8.13.7/8.13.7/Submit) id k6M4f8vv000894; Fri, 21 Jul 2006 21:41:08 -0700 (PDT) Date: Fri, 21 Jul 2006 21:41:08 -0700 (PDT) Message-Id: <200607220441.k6M4f8vv000894@m5p.com> From: george+freebsd@m5p.com To: freebsd-questions@freebsd.org X-Spam-Score: -2.148 () AWL,BAYES_00,NO_RELAYS X-Scanned-By: MIMEDefang 2.56 on IPv6:2001:418:3fd::f7 Subject: Still debugging why open("/dev/lpt0"...) hangs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 04:41:11 -0000 lpt0 is hanging up when it tries to request the ppbus (line 478 of lpt.c). I'm guessing that if_plip.c has requested it and not released it, which apparently happens when there's been an ioctl on the plip. There's no plausible reason why this should happen. What can I call in lpioctl (if_plip.c line 302) to print out some identifying information about the process doing the ioctl? Or is there a better list somewhere to ask this question? -- George Mitchell