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

Diff for /src/usr.bin/yacc/main.c between version 1.12 and 1.13

version 1.12, 2001/07/16 06:29:44 version 1.13, 2001/11/07 11:42:53
Line 123 
Line 123 
 void create_file_names __P((void));  void create_file_names __P((void));
 void open_files __P((void));  void open_files __P((void));
   
   volatile sig_atomic_t sigdie;
   
 void  void
 done(k)  done(k)
 int k;  int k;
 {  {
     if (action_file) { fclose(action_file); unlink(action_file_name); }      if (action_file)
     if (text_file) { fclose(text_file); unlink(text_file_name); }          unlink(action_file_name);
     if (union_file) { fclose(union_file); unlink(union_file_name); }      if (text_file)
           unlink(text_file_name);
       if (union_file)
           unlink(union_file_name);
       if (sigdie)
           _exit(k);
     exit(k);      exit(k);
 }  }
   
Line 138 
Line 145 
 onintr(signo)  onintr(signo)
         int signo;          int signo;
 {  {
     done(1);    /* XXX signal race */      sigdie = 1;
       done(1);
 }  }
   
   

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13