home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / nntp1.5 / part01 / rrnpatches / final.c.pat < prev    next >
Encoding:
Text File  |  1988-04-18  |  1.2 KB  |  65 lines

  1. *** rn/final.c    Sun Mar 15 19:54:39 1987
  2. --- rrn/final.c    Mon Jul 13 15:48:50 1987
  3. ***************
  4. *** 15,20
  5.   #include "bits.h"
  6.   #include "last.h"
  7.   #include "rcstuff.h"
  8.   #include "INTERN.h"
  9.   #include "final.h"
  10.   
  11.  
  12. --- 15,22 -----
  13.   #include "bits.h"
  14.   #include "last.h"
  15.   #include "rcstuff.h"
  16. + #include "ngdata.h"
  17. + #include "artio.h"
  18.   #include "INTERN.h"
  19.   #include "final.h"
  20.   
  21. ***************
  22. *** 51,56
  23.   finalize(status)
  24.   int status;
  25.   {
  26.       if (bizarre)
  27.       resetty();
  28.       UNLINK(lockname);
  29.  
  30. --- 53,62 -----
  31.   finalize(status)
  32.   int status;
  33.   {
  34. + #ifdef SERVER
  35. +     char artname[32];
  36. + #endif SERVER
  37.       if (bizarre)
  38.       resetty();
  39.       UNLINK(lockname);
  40. ***************
  41. *** 54,59
  42.       if (bizarre)
  43.       resetty();
  44.       UNLINK(lockname);
  45.       if (status < 0) {
  46.       chdir("/usr/tmp");
  47.       sigset(SIGILL,SIG_DFL);
  48.  
  49. --- 60,73 -----
  50.       if (bizarre)
  51.       resetty();
  52.       UNLINK(lockname);
  53. + #ifdef SERVER
  54. +     if (openart > 0) {
  55. +     sprintf(artname, "/tmp/rrn%ld.%ld", openart, getpid());
  56. +         UNLINK(artname);
  57. +     }
  58. +     UNLINK(active_name);
  59. +     close_server();
  60. + #endif SERVER
  61.       if (status < 0) {
  62.       chdir("/usr/tmp");
  63.       sigset(SIGILL,SIG_DFL);
  64.