[net.news.b] Don"t hang up early after inews

dmmartindale (11/01/82)

Actually, it's worse than this.  Inews is also rnews.  When uucp finishes
transferring stuff, it starts up a uuxqt which will start an rnews if
there is incoming news.  If the machine that uucico was talking to is
a bit slow about hanging up its phone, a SIGHUP from the carrier drop
on the phone line can be sent to all processes in the process group
associated with the phone line.  Uuxqt is clever enough to ignore this,
but if an rnews has already started up by the time the signal comes along,
it dies an unnatural death.  If you have a version of uuxqt which supports
the -z flag, a message looking something like
	uuxqt cmd (rnews) status (exit 0, signal 1)
will be mailed back to the originating machine.
I'm not sure if this is the best fix, but it does work:
(thanks go to arwhite)

*** /usr/distr/news/2.9/src/inews.c	Thu Jul  1 22:49:46 1982
--- inews.c	Mon Oct 18 23:58:10 1982
***************
*** 91,97
  /*
  	signal(SIGQUIT, SIG_IGN);
  */
! 	signal(SIGHUP, onsig);
  	signal(SIGINT, onsig);
  	savmask = umask(N_UMASK);	/* set up mask */
  	uid = (unsigned) getuid();
--- 91,98 -----
  /*
  	signal(SIGQUIT, SIG_IGN);
  */
! 	if(mode != PROC)
! 		signal(SIGHUP, onsig);
  	signal(SIGINT, onsig);
  	savmask = umask(N_UMASK);	/* set up mask */
  	uid = (unsigned) getuid();