Re: clockspeed problem under FreeBSD 4.0
Lloyd Zusman <[email protected]> Fri, 28 Nov 2003 20:16:45 -0500
| Newsgroups | gmane.comp.lib.libtai |
|---|---|
| Message-ID | <[email protected]> |
Never mind. I'm sorry for the bandwidth. As soon as I posted this query, I discovered my problem: I had accidentally run the following command before running clockspeed for the first time: sntpclock w.x.y.z > /usr/local/clockspeed/adjust & This caused 'adjust' to be a plain file instead of a fifo, and this was the cause of my problem. After deleting 'adjust' and restarting clockspeed, all is well. Lloyd Zusman <[email protected]> writes: > I'm trying to get clockspeed-0.62 running under FreeBSD 4.0, but I'm > having a problem. > > Yes, I know it's an old OS version, but it will be a while before I can > upgrade ... and all other djb utilities work fine. > > The problem is this: whenever I run clockspeed, the program exits at the > "not possible" statement below (from the clockspeed.c source code): > > for (;;) { > FD_ZERO(&rfds); > FD_SET(0,&rfds); > > tvselect.tv_sec = 3; > tvselect.tv_usec = 0; > > if (select(1,&rfds,(fd_set *) 0,(fd_set *) 0,&tvselect) == 1) { > r = read(0,buf,sizeof buf); > if (r <= 0) _exit(1); /* not possible */ > > Have any of you seen this before, and if so, is there a workaround? > > Thanks in advance. > > -- > Lloyd Zusman > [email protected] > > -- Lloyd Zusman [email protected]