🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Rasmus Lerdorf Sun, 27 May 1990 16:57
Annoying nnmaster aborts
#479
Author: Rasmus Lerdorf
Date: Sun, 27 May 1990 16:57
18 lines
1546 bytes
Why why why?

It has been annoying me for a while now.  nnmaster aborts with exit status
7 if there is the slightest little inconsistency in the news spool 
directories.  For example, I had the wrong ownership on my ut.software.tex
directory, and this is what I got in the log:
E: May 26 09:59 (M): ut.software.tex (419): cannot open 'x' file (mode=82, errno
=13)
E: May 26 09:59 (M): Abnormal termination, exit=7

So?  I fixed the permission and re-ran nnmaster.  No big deal, but the
point is that I had no idea the silly thing had terminated on me.  If
it has to stop, it could at least send a message to news stating that
it has aborted.  Could it not just ignore the above error, notify me
of the problem, and skip onto the next group?
-- 
Rasmus Lerdorf   | ..!geac!dmntor!rasmus  (Work) (416) 362-0788 
UW SD Eng. '93   | ..!geac!contact!rasmus (Home) (416) 833-6987    
Re: Annoying nnmaster aborts
#488
Author: Kim F. Storm
Date: Mon, 28 May 1990 20:59
54 lines
3039 bytes
rasmus@dmntor.uucp (Rasmus Lerdorf) writes:

>Why why why?

Because it is easier that way - and something is *definitely* wrong!!

>It has been annoying me for a while now.  nnmaster aborts with exit status
>7 if there is the slightest little inconsistency in the news spool 
>directories.

I think you should appreciate nnmaster detecting this at all since it
may very well also prevent news itself from functioning properly.
But if this "has annoyed you for a while", then I suppose this isn't the
first time inconsistencies have occurred in your setup?  I think you
should find the cause of that rather than being annoyed with nnmmaster
- it simply assumes that your news system is consistent - which it should
be if it is running properly!

>For example, I had the wrong ownership on my ut.software.tex
>directory, and this is what I got in the log:
>E: May 26 09:59 (M): ut.software.tex (419): cannot open 'x' file (mode=82, errno
>=13)
>E: May 26 09:59 (M): Abnormal termination, exit=7

You should be happy :-)   In 6.4.0, it would just have said:

E: May 26 09:59 (M): cannot open: '.nnx' (mode=82, errno=13)

Now, that would really have *annoyed* you, right?

>So?  I fixed the permission and re-ran nnmaster.  No big deal, but the
>point is that I had no idea the silly thing had terminated on me.  If
>it has to stop, it could at least send a message to news stating that
>it has aborted.  Could it not just ignore the above error, notify me
>of the problem, and skip onto the next group?

You are welcome to make some changes to sys_error() in global.c which
causes a terminating nnmaster send a message to the "news" account
(or maybe OWNER would be better?).  Actually, that would be "great"!

Making nnmaster continue after this kind of error is a bit hard, since
the rest of the code isn't written to handle the error (that is why it
terminates!).  But I honestly think termination is ok, since it has
detected a *significant* problem in the news hierarchy!  Or in the
way you operate nnmaster!

Suppose, you have specified that nnmaster should place its files in
the group directories, but you don't run it as "news".  Then it will
definitely not be able to create the files it needs - isn't that
reason enough to terminate?

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
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