[BACK]Return to tipout.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tip

Diff for /src/usr.bin/tip/Attic/tipout.c between version 1.10 and 1.11

version 1.10, 2003/06/03 02:56:18 version 1.11, 2004/05/26 18:17:59
Line 95 
Line 95 
 }  }
   
 void  void
 intTERM()  intTERM(int signo)
 {  {
   
         if (boolean(value(SCRIPT)) && fscript != NULL)          if (boolean(value(SCRIPT)) && fscript != NULL)
                 fclose(fscript);                  fclose(fscript);
           if (signo && tipin_pid)
                   kill(tipin_pid, signo);
         exit(0);          exit(0);
 }  }
   
Line 140 
Line 142 
                                 sigemptyset(&mask);                                  sigemptyset(&mask);
                                 sigaddset(&mask, SIGTERM);                                  sigaddset(&mask, SIGTERM);
                                 sigprocmask(SIG_BLOCK, &mask, NULL);                                  sigprocmask(SIG_BLOCK, &mask, NULL);
                                 intTERM();                                  intTERM(0);
                                 /*NOTREACHED*/                                  /*NOTREACHED*/
                         }                          }
                         continue;                          continue;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11