[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] unable to open lockfile



Some weeks ago Cornelius Krasel posted into a German newsgroup
following patch, 
which solved for me the problem:

~/leafnode-1.9.2% grep 'unable to open lockfile' *.c
miscutil.c:     syslog( LOG_ERR, "unable to open lockfile: %d %m",
errno );

Patch:

--- miscutil.c.orig     Sat Mar 27 17:17:11 1999
+++ miscutil.c  Sat Mar 27 17:19:33 1999
@@ -123,8 +123,8 @@
            syslog( LOG_ERR, "unable to read lockfile %s, abort ...",
lockfile );
            return 1;
        }
-    } else {
-       syslog( LOG_ERR, "unable to open lockfile: %d %m", errno );
+    } else if ( errno != ENOENT ) {
+       syslog( LOG_ERR, "unable to open lockfile %s: %m", lockfile );
     }
     if ( ( lf = fopen( lockfile, "w" )) != NULL ) {
        fprintf( lf, "%d", getpid() );

Roland

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list