Re: socklog-1.5.0 fails test on freebsd-stable

Gerrit Pape <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <20040702124802.27719.qmail@a920a0bf29524e.315fe32.mid.smarden.org>
On Fri, Jul 02, 2004 at 02:03:38PM +0200, Clemens Fischer wrote:
> * 2004-06-26 Gerrit Pape:
> > Hi, a test package version 1.5.0 of socklog is available:
> >
> >  http://smarden.org/socklog/
> 
> 'uname -rms'
> FreeBSD 4.10-STABLE i386

> | Checking socklog-check...
> | $Id: socklog-check.c,v 1.1 2004/06/26 09:32:04 pape Exp $
> | usage: socklog-check [-v] [unix [address]]
> | 
> | 1
> | socklog-check: warning: unable to connect socket: socklog.check.socket: file does not exist
> | listening on socklog.check.socket, 111
> | starting.
> | socklog-check: info: successfully connected to socklog.check.socket
> | 0

Yes, I was hit by this problem too on some systems.  It's false alarm
due to a race in the selftest.  On your system the wrong process won the
race.  See the patch below.

Regards, Gerrit.
socklog-check.check.diff (text/plain, 560 B)
socklog-check.check: tweak timing in program test.

Index: src/socklog-check.check
===================================================================
RCS file: /var/lib/cvs/socklog/src/socklog-check.check,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- src/socklog-check.check	26 Jun 2004 09:31:42 -0000	1.1
+++ src/socklog-check.check	27 Jun 2004 18:25:39 -0000	1.2
@@ -5,6 +5,7 @@
 
 socklog unix socklog.check.socket &
 pid=$!
+sleep 1
 socklog-check unix socklog.check.socket
 echo $?
 socklog-check -v unix socklog.check.socket
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.