[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.26 and 1.27

version 1.26, 2012/01/29 02:22:11 version 1.27, 2012/07/10 11:53:01
Line 21 
Line 21 
   
 #include <fcntl.h>  #include <fcntl.h>
 #include <paths.h>  #include <paths.h>
   #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   
Line 117 
Line 118 
         log_debug("free job %p: %s", job, job->cmd);          log_debug("free job %p: %s", job, job->cmd);
   
         LIST_REMOVE(job, lentry);          LIST_REMOVE(job, lentry);
         xfree(job->cmd);          free(job->cmd);
   
         if (job->freefn != NULL && job->data != NULL)          if (job->freefn != NULL && job->data != NULL)
                 job->freefn(job->data);                  job->freefn(job->data);
Line 129 
Line 130 
         if (job->fd != -1)          if (job->fd != -1)
                 close(job->fd);                  close(job->fd);
   
         xfree(job);          free(job);
 }  }
   
 /* Job buffer error callback. */  /* Job buffer error callback. */

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27