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

Diff for /src/usr.bin/tmux/job.c between version 1.57 and 1.58

version 1.57, 2020/03/24 08:09:44 version 1.58, 2020/05/16 15:24:28
Line 19 
Line 19 
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/ioctl.h>  #include <sys/ioctl.h>
 #include <sys/socket.h>  #include <sys/socket.h>
   #include <sys/wait.h>
   
 #include <fcntl.h>  #include <fcntl.h>
 #include <paths.h>  #include <paths.h>
Line 285 
Line 286 
         }          }
         if (job == NULL)          if (job == NULL)
                 return;                  return;
           if (WIFSTOPPED(status)) {
                   if (WSTOPSIG(status) == SIGTTIN || WSTOPSIG(status) == SIGTTOU)
                           return;
                   killpg(job->pid, SIGCONT);
                   return;
           }
         log_debug("job died %p: %s, pid %ld", job, job->cmd, (long) job->pid);          log_debug("job died %p: %s, pid %ld", job, job->cmd, (long) job->pid);
   
         job->status = status;          job->status = status;

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58