From owner-freebsd-questions Tue Oct 26 23:23:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 28BED14D36 for ; Tue, 26 Oct 1999 23:23:08 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id BAA30324; Wed, 27 Oct 1999 01:23:02 -0500 (CDT) (envelope-from dan) Date: Wed, 27 Oct 1999 01:23:01 -0500 From: Dan Nelson To: Jarvis Cochrane Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Problems with open() and flock() on /dev/ttyd1 Message-ID: <19991027012301.A30209@dan.emsphone.com> References: <381695ED.764A93B@guru.wow.aust.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <381695ED.764A93B@guru.wow.aust.com>; from jarvis@guru.wow.aust.com on Wed, Oct 27, 1999 at 02:05:02PM +0800 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 27), Jarvis Cochrane said: > I'm installing the SmartUPS monitoring tools from > http://www.exploits.org/~rkroll/smartupstools/ on a 3.0-RELEASE > Freebsd machine. The UPS is connected to the computer by one of the > special APC 'black' cables. > > After a bit of mucking about I was able to communicate with the UPS > using tip, and was able to retreive state information. > > However, when I ran the ups program, it would complain that the port > was locked by another process. > > It turns out that the serial port is opened by the following code... The problem is that the configure script doesn't detect that FreeBSD has uu_lock. I had sent in patches that almost worked, but I have since upgraded to a machine with only one serial port (!) and my mouse is plugged into it. So I haven't been able to play with the upstools in a while. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message