From owner-freebsd-questions Tue Oct 26 23:36:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alexandria.murdoch.edu.au (alexandria.murdoch.edu.au [134.115.241.22]) by hub.freebsd.org (Postfix) with ESMTP id 62FB814D54 for ; Tue, 26 Oct 1999 23:36:22 -0700 (PDT) (envelope-from jarvis@guru.wow.aust.com) Received: from guru.wow.aust.com (regmac23.murdoch.edu.au [134.115.241.182]) by alexandria.murdoch.edu.au (8.9.2/8.9.2) with ESMTP id OAA25147; Wed, 27 Oct 1999 14:36:13 +0800 (WST) (envelope-from jarvis@guru.wow.aust.com) Message-ID: <38169D5D.78691151@guru.wow.aust.com> Date: Wed, 27 Oct 1999 14:36:13 +0800 From: Jarvis Cochrane Reply-To: jarvis@guru.wow.aust.com Organization: Murdoch University X-Mailer: Mozilla 4.5 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 To: Dan Nelson Subject: Re: Problems with open() and flock() on /dev/ttyd1 References: <381695ED.764A93B@guru.wow.aust.com> <19991027012301.A30209@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Nelson wrote: > > 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. Oh... ok. Why is uu_lock preferred to flock? Thanks for your prompt reply! Jarvis -- Jarvis Cochrane, IT Support Office of Student Services | jarvis@guru.wow.aust.com Murdoch University | cochrane@central.murdoch.edu.au Western Australia | [61|0] 8 9360 6128 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message