🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Tim Langlois Thu, 22 Jul 1993 17:41
trn - nntpd: xthread error
#5032
Author: Tim Langlois
Date: Thu, 22 Jul 1993 17:41
15 lines
1298 bytes
I am using trn 3.0 with NOV patched CNews and nntpd.  Trn seems to work 
correctly, but every time I run it nntpd places a message in the log file
stating:

nntpd: xthread: fopen /usr2/spool/news/db.init: No such file or directory

Is this a problem or is this trn trying to figure out whether it should use
the XTHREAD or XOVER extension?  If this message is normal, is there a way to
tell nntp not to log this message everytime someone uses trn?

Just curious, any help would be appreciated.

-- 
Optimization  Technology  Inc.       Tim Langlois (langlois@oti-hsv.com)
Huntsville, AL, (205) 721-1288	     Software Engineer
Re: trn - nntpd: xthread error
#5045
Author: Wayne Davison
Date: Fri, 23 Jul 1993 22:08
32 lines
1722 bytes
According to Tim Langlois <langlois@oti-hsv.com>:
> nntpd: xthread: fopen /usr2/spool/news/db.init: No such file or directory
> 
> Is this a problem or is this trn trying to figure out whether it should use
> the XTHREAD or XOVER extension?

The latter.  If trn is successful in getting the db.init file from the
server it knows (assumes) that there is a thread database available.  If
not it does not try any other XTHREAD commands.

> If this message is normal, is there a way to
> tell nntp not to log this message everytime someone uses trn?

You can either turn off trn's thread-file accessing (turn off USE_MT in the
config.h file and recompile) or remove the code in nntpd that logs this as
an error:

Index:xthread.c
@@ -82,10 +82,6 @@
 	{
 		printf("%d %s file is not available.\r\n", ERR_FAULT, what);
 		(void) fflush(stdout);
-#ifdef SYSLOG
-		if (!strcmp(what, "db.init"))
-		    syslog(LOG_ERR, "xthread: fopen %s: %m", file);
-#endif
 		return;
 	}
 
-- 
Wayne Davison
davison@borland.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads