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

Diff for /src/usr.bin/timeout/timeout.c between version 1.4 and 1.5

version 1.4, 2021/09/01 16:09:54 version 1.5, 2021/09/01 16:11:30
Line 137 
Line 137 
         }          }
   
         switch(signo) {          switch(signo) {
         case 0:  
         case SIGINT:          case SIGINT:
         case SIGHUP:          case SIGHUP:
         case SIGQUIT:          case SIGQUIT:
Line 181 
Line 180 
         bool            timedout = false;          bool            timedout = false;
         bool            do_second_kill = false;          bool            do_second_kill = false;
         struct          sigaction signals;          struct          sigaction signals;
         int             signums[] = {          int             signums[] = {-1, SIGTERM, SIGINT, SIGHUP, SIGCHLD,
                 -1,                              SIGALRM, SIGQUIT};
                 SIGTERM,  
                 SIGINT,  
                 SIGHUP,  
                 SIGCHLD,  
                 SIGALRM,  
                 SIGQUIT,  
         };  
   
         const struct option longopts[] = {          const struct option longopts[] = {
                 { "preserve-status", no_argument,       &preserve,    1 },                  { "preserve-status", no_argument,       &preserve,    1 },

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5