🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #13305

Re: Announcing NewsX

#13305
From: Goran Larsson
Date: Sun, 15 Dec 1996 00:00
75 lines
3899 bytes
In article <58v2nl$p6@pixi.com>, Robert A. Yetman <boby@pixi.com> wrote:
> In article <1996Dec9.224316.16691@lorelei.approve.se>, hoh@approve.se.NO_JUNK_EMAIL (Goran Larsson) writes:
> >  1) Don't have to change that bogous "void main" to "int main" for
> >     each new suck version.
> 
> This is a philisophical difference, not a difference that affects the code.

As suck is compiled with a C compiler in a *hosted environment* the only
two legal declarations of main are:
	int main ( void );
	int main ( int, char** );

> The reason I keep it void is this: main doesn't use a return statement,
> no return statement, no value to return hence the void.  Yes I return
> a value thru exit(), but that's not the same.

A sufficiently wicked environment migt not even be able to begin executing
inside main if, for example, the calling conventions for an void valued,
and an int valued function differs. A agree that this is not a problem for
most current architectures...

> >  3) Don't need to add fflush() in several places just to get the
> >     logfile out of the stdio buffers for each new suck version.
> >
> Where would you like to see it fflush() on the logfile()?  The logfile was designed
> for people who use it from cron(), and hence wouldn't be monitoring real-time.

First: It is a pain when debugging. If you do a "tail -f" or "xtail" on
       the logfiles you don't see anything for quite a while.
Second: I sometimes start suck manually while I have the PPP line up just
        to get the load up.

> >  4) Don't need to have a temp directory for downloaded messages with
> >     one file for each article.
> >
> This is only ONE of the modes of suck.  You can still have suck deliver articles to stdout,
> and than do with them what you want.  This was done to make posting to INN via INNXMIT,
> real easy and quick.

I need to have them as C-News batches. When I brought this up with you
quite some time ago you said it had to be done this way due to the restart
code.

> >  5) Don't need 202 lines of shell script just to handle:
> 	This must be an older version, its now just 138 lines.  Actually if you look

My own script is 202 lines.

> >      Locking.
> There are two locks in the current version.  One is created by suck, and is in the C code.
> One is in the SAMPLE script, and was put there due to a request from another user.	

I need my own version of locking.

> >      Safety net for sucknewsrc if suck crashes.
> 
> This hasn't been in the scripts for a while now, this is all handled internally, via the
> -c option.

I added that after suck ate the sucknewsrc file a couple of times. This,
however, was quite a number of versions ago.

> >      Handling of error logs and logs.
> What don't you like about the logs?

Nothing wrong with them, but I have a naming convention for the log files
and keep logs for a couple of days with automatic expiration.

-- 
 Goran Larsson                mailto:hoh@approve.se
 I was an atheist,            http://home1.swipnet.se/%7Ew-12153/
 until I found out I was God.

Technical Details
Message-ID: <1996Dec15.092927.13099@lorelei.approve.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <1996Dec9.224316.16691@lorelei.approve.se> <58v2nl$p6@pixi.com>

Show Full Headers
Complete Article Headers
Message-ID: <1996Dec15.092927.13099@lorelei.approve.se>
Subject: Re: Announcing NewsX
Date: Sun, 15 Dec 1996 00:00:00 +0000
From: hoh@approve.se.NO_JUNK_EMAIL (Goran Larsson)
References: <1996Dec9.224316.16691@lorelei.approve.se> <58v2nl$p6@pixi.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 204232263
Distribution: inet
Sender: hoh@lorelei.approve.se.NO_JUNK_EMAIL (Goran Larsson)
Organization: [1] + 5934 done  /bin/rm -rf ~/ &
Newsgroups: news.software.nntp
Originator: hoh@approve.se.NO_JUNK_EMAIL (Goran Larsson)
X-newsposter: Pnews 4.0-test50 (13 Dec 96)