🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Andy Green Tue, 10 Aug 1993 20:51
INN 1.3 news.daily hangs
#2080
Author: Andy Green
Date: Tue, 10 Aug 1993 20:51
9 lines
1106 bytes
Hello folks.  I'm running INN1.3, a recent install.  Things seem to be going well,
but I tried running news.daily (under the news id) and it chugs for a bit and then
hangs.  I'm not a Unix guru yet so my troubleshooting skills are limited.  Does
anyone know what might be the cause of this?

I'm running Linux, patch level 11, if that matters...

Andy, green@ids.net
Re: INN 1.3 news.daily hangs
#2075
Author: Michael John Ellis
Date: Wed, 11 Aug 1993 03:11
15 lines
1284 bytes
green@ids.net (Andy Green) wrote:
>Hello folks.  I'm running INN1.3, a recent install.  Things seem to be going well,
>but I tried running news.daily (under the news id) and it chugs for a bit and then
>hangs.  I'm not a Unix guru yet so my troubleshooting skills are limited.  Does
>anyone know what might be the cause of this?

I dont know the cause, but if you EVER had a copy of c-news installed before,
look for any old c-news files.

Even better, get version 1.4. It is WAY stable, and an awesome piece of
Software.

later,
	MikeE
Re: INN 1.3 news.daily hangs
#2076
Author: Marc Unangst
Date: Wed, 11 Aug 1993 12:19
28 lines
2157 bytes
green@ids.net (Andy Green) writes:
>Hello folks.  I'm running INN1.3, a recent install.  Things seem to
>be going well, but I tried running news.daily (under the news id) and
>it chugs for a bit and then hangs.  I'm not a Unix guru yet so my
>troubleshooting skills are limited.  Does anyone know what might be
>the cause of this?

I'm having the same problem, also running under Linux 0.99pl11.  To be
more exact, the news.daily script blocks for input from stdin
immediately after executing the shlock command.  Hitting ^D *twice* on
stdin (the first one just prints "^D") causes the shell to print
"Syntax error" on stderr and exit.  The problem seems to be related to
the file-descriptor redirection done by the "exec 3>&1 >/tmp/file
2>&1" statement a bit earlier in the script.  If this exec statement
is removed, the script runs to completion; of course, the report then
goes to stdout rather than to a temporary file.  This is probably a
bug in Bash, but I haven't tried to track it down yet.

Interestingly enough, there was a similar bug in the SVR4.0.3 /bin/sh
that caused innwatch to block for input from stdin after looping
through innwatch.ctl once.  However, that bug appears to have been
fixed in SVR4.0.4.

-- 
Marc Unangst, N8VRH         | "Free software is NOT the same thing as
mju@mudos.ann-arbor.mi.us   |  free beer."
                            |     -Philip Knapp in comp.os.linux
[SOLUTION] INN 1.3 news.daily hangs
#2079
Author: Arjan de Vet
Date: Wed, 11 Aug 1993 17:04
59 lines
2956 bytes
In article <24ao3u$ru7@mudos.ann-arbor.mi.us>,
Marc Unangst <mju@mudos.ann-arbor.mi.us> wrote:

>I'm having the same problem, also running under Linux 0.99pl11.  To be
>more exact, the news.daily script blocks for input from stdin
>immediately after executing the shlock command.  Hitting ^D *twice* on
>stdin (the first one just prints "^D") causes the shell to print
>"Syntax error" on stderr and exit.  The problem seems to be related to
>the file-descriptor redirection done by the "exec 3>&1 >/tmp/file
>2>&1" statement a bit earlier in the script.  If this exec statement
>is removed, the script runs to completion; of course, the report then
>goes to stdout rather than to a temporary file.  This is probably a
>bug in Bash, but I haven't tried to track it down yet.

Yes, it's a bug in bash 1.12 and I just found the patch I got from Chet
Ramey (one of the authors of bash) to fix this bug:

-----------------------------------------------------------------------------
*** shell.c.orig	Tue Jan 21 00:52:37 1992
--- shell.c	Thu Feb 25 07:39:09 1993
***************
*** 706,709 ****
--- 706,720 ----
  	}
  
+       {
+ 	int script_fd;
+ 
+ 	script_fd = dup2 (fd, getdtablesize () - 1);
+ 	if (script_fd)
+ 	  {
+ 	    close (fd);
+ 	    fd = script_fd;
+ 	  }
+       }
+ 
        default_input = fdopen (fd, "r");
----------------------------------------------------------------------------- 

There may be still a problem with the scripts which handle control
messages (e.g., newgroup) with bash-1.12 because of the following line:

	. /usr/lib/news/parsecontrol "$@"

You can solve that by replacing this line by the contents of the
parsecontrol script itself.

Both bugs have been fixed in the (private) development version of
bash-1.13cwru.

I'll add these remarks to my inn-1.4-linux.tar.gz file on
ftp.win.tue.nl:/pub/linux/ports/.

Arjan

--
Arjan de Vet                             <Arjan.de.Vet@adv.win.tue.nl> (home)
Eindhoven University of Technology, the Netherlands <devet@win.tue.nl> (work)
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