Date: Wed, 27 Oct 1999 14:36:13 +0800 From: Jarvis Cochrane <jarvis@guru.wow.aust.com> To: Dan Nelson <dnelson@emsphone.com> Subject: Re: Problems with open() and flock() on /dev/ttyd1 Message-ID: <38169D5D.78691151@guru.wow.aust.com> References: <381695ED.764A93B@guru.wow.aust.com> <19991027012301.A30209@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38169D5D.78691151>