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

Diff for /src/usr.bin/less/signal.c between version 1.7 and 1.8

version 1.7, 2011/09/16 18:12:09 version 1.8, 2011/09/21 19:01:49
Line 23 
Line 23 
 /*  /*
  * "sigs" contains bits indicating signals which need to be processed.   * "sigs" contains bits indicating signals which need to be processed.
  */   */
 public int sigs;  public volatile sig_atomic_t sigs;
   
 extern int sc_width, sc_height;  extern int sc_width, sc_height;
 extern int screen_trashed;  extern int screen_trashed;
Line 41 
Line 41 
 u_interrupt(type)  u_interrupt(type)
         int type;          int type;
 {  {
         bell();  
 #if OS2  #if OS2
         LSIGNAL(SIGINT, SIG_ACK);          LSIGNAL(SIGINT, SIG_ACK);
 #endif  #endif
Line 236 
Line 235 
 #endif  #endif
         if (tsignals & S_INTERRUPT)          if (tsignals & S_INTERRUPT)
         {          {
                   bell();
                 if (quit_on_intr)                  if (quit_on_intr)
                         quit(QUIT_INTERRUPT);                          quit(QUIT_INTERRUPT);
         }          }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8