[news.software.b] Unofficial bug fix

takahasi@tsukuba.sanyo.co.jp (Hironobu Takahashi) (10/25/90)

Hello  RN users in the world.

I made a patch of RN for Japanese users,  and I heard a trouble of RN47
derived from original RN at the time of saving articles.  It is caused
by bugs when RN gets process ID.

I think it is important for rrn users.  I post an UNOFFICIAL patch, and I
wish SOB will include more excellent solutions in his next RN patch.

# Mr. Ohtaki ( Tsukuba University ) pointed this trouble.

*** dist-test/artio.c	Wed Jun 27 23:28:51 1990
--- dist-fixed/artio.c	Sun Jul  8 09:06:27 1990
***************
*** 93,99 ****
  }
  
  #ifdef SERVER
! static long our_pid;
  
  FILE *
  nntpopen(artnum,function)
--- 93,99 ----
  }
  
  #ifdef SERVER
! static long our_pid=0;
  
  FILE *
  nntpopen(artnum,function)
*** dist-test/ng.c	Wed Jun 27 23:27:00 1990
--- dist-fixed/ng.c	Sun Jul  8 09:02:23 1990
***************
*** 137,143 ****
  #ifdef SERVER
      char ser_line[256];
      char artname[32];
!     static long our_pid;
  #endif SERVER
      char oldmode = mode;
      register long i;			/* scratch */
--- 137,143 ----
  #ifdef SERVER
      char ser_line[256];
      char artname[32];
!     static long our_pid=0;
  #endif SERVER
      char oldmode = mode;
      register long i;			/* scratch */
--
!$@$/$m$&$5$.!w%$%s%l(J
!$@9b66M5?.(J  $@;0MNEE5!C^GH8&5f=j(J $@CNG=%7%9%F%`8&5f<<(J