🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #7885

Re: Release of nn-6.5.0

#7885
From: Larry Daffner
Date: Fri, 23 Aug 1996 00:00
50 lines
2818 bytes
mtpins@icaen.uiowa.edu (Michael T Pins) writes:

>paul@alantec.com (G. Paul Ziemba) writes:

>>    2. At startup, when nn connects to the nntp server,
>>       I get double lines such as the following (maybe a curses problem?):

>>     106:paul@tango% ./nn
>>     Connecting to NNTP server paperboy.alantec.com ...
>>     Connecting to NNTP server paperboy.alantec.com ... ok (posting is allowed)

>nn has done this for as long as I've used NNTP for it.  But yes, I really
>should track it down and change it.

Ooh, I know, I know! :)  This one is relatively easy, if somewhat
cryptic. What happens:

1) nn goes off to get the active file.
   1a) an NNTP connection is made
       - Here, nn uses msg() to put the messages in the status line.
	 If init_term() had already been called, the 2 messages would
	 overlay each other, causing the proper effect.  This occurs
	 properly if NOV is not used, since the active is local (I
	 think?) and the NNTP connection isn't started til after the
	 next few steps.
2) nn reads the init files and initializes the terminal. Now it's
   ready to handle the msg() call, but it's too late.

This also prevents nn from seeing any user set variables that might
affect the active file reading.  Michael, you'll notice in the
dont-read-active patch I sent you, visit_init_file() is moved above
open_master().  That's to get around this situation.  The potentially
correct way to get around this is to move the init_term and
visit_init_file calls above open_master and removing them from the
case statement just below.  Of course, you'd have a long if statement
wrapping those 2 calls, but it could significantly shortened by
changing the definitions of the I_AM_XXXX defines so that a certain
bit means "I need to do the init stuff". Of course, if you change the
definitions like that, you better damn well document it so some dummy
doesn't screw it up :)

-Larry
--
  Larry Daffner        |  Linux: Unleash the workstation in your PC!
  vizzie@airmail.net / http://web2.airmail.net/vizzie/
C makes it easy to shoot yourself in the foot.  C++ makes it harder, but
  when you do, it blows away your whole leg.  -- Bjarne Stroustrup on C++

Technical Details
Message-ID: <4vjnmg$4d5@library.airnews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
References: <4vbk6q$74q@server05.icaen.uiowa.edu> <4vhg60$m0d@tango.alantec.com> <4vhodo$g2j@server05.icaen.uiowa.edu>

Show Full Headers
Complete Article Headers
Message-ID: <4vjnmg$4d5@library.airnews.net>
Subject: Re: Release of nn-6.5.0
Date: Fri, 23 Aug 1996 00:00:00 +0000
From: vizzie@airmail.net (Larry Daffner)
References: <4vbk6q$74q@server05.icaen.uiowa.edu> <4vhg60$m0d@tango.alantec.com> <4vhodo$g2j@server05.icaen.uiowa.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 175995582
Organization: INTERNET AMERICA
Newsgroups: news.software.nn