home *** CD-ROM | disk | FTP | other *** search
- *** rn/final.c Sun Mar 15 19:54:39 1987
- --- rrn/final.c Mon Jul 13 15:48:50 1987
- ***************
- *** 15,20
- #include "bits.h"
- #include "last.h"
- #include "rcstuff.h"
- #include "INTERN.h"
- #include "final.h"
-
-
- --- 15,22 -----
- #include "bits.h"
- #include "last.h"
- #include "rcstuff.h"
- + #include "ngdata.h"
- + #include "artio.h"
- #include "INTERN.h"
- #include "final.h"
-
- ***************
- *** 51,56
- finalize(status)
- int status;
- {
- if (bizarre)
- resetty();
- UNLINK(lockname);
-
- --- 53,62 -----
- finalize(status)
- int status;
- {
- + #ifdef SERVER
- + char artname[32];
- + #endif SERVER
- +
- if (bizarre)
- resetty();
- UNLINK(lockname);
- ***************
- *** 54,59
- if (bizarre)
- resetty();
- UNLINK(lockname);
- if (status < 0) {
- chdir("/usr/tmp");
- sigset(SIGILL,SIG_DFL);
-
- --- 60,73 -----
- if (bizarre)
- resetty();
- UNLINK(lockname);
- + #ifdef SERVER
- + if (openart > 0) {
- + sprintf(artname, "/tmp/rrn%ld.%ld", openart, getpid());
- + UNLINK(artname);
- + }
- + UNLINK(active_name);
- + close_server();
- + #endif SERVER
- if (status < 0) {
- chdir("/usr/tmp");
- sigset(SIGILL,SIG_DFL);
-