[BACK]Return to cmd-if-shell.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-if-shell.c between version 1.5 and 1.6

version 1.5, 2009/10/11 09:10:57 version 1.6, 2009/11/01 23:20:37
Line 65 
Line 65 
         if (ctx->curclient != NULL)          if (ctx->curclient != NULL)
                 ctx->curclient->references++;                  ctx->curclient->references++;
   
         job = job_add(NULL, NULL,          job = job_add(NULL, 0, NULL,
             data->arg, cmd_if_shell_callback, cmd_if_shell_free, cdata);              data->arg, cmd_if_shell_callback, cmd_if_shell_free, cdata);
         job_run(job);          job_run(job);
   
Line 80 
Line 80 
         struct cmd_list                 *cmdlist;          struct cmd_list                 *cmdlist;
         char                            *cause;          char                            *cause;
   
         if (!WIFEXITED(job->status) || WEXITSTATUS(job->status) != 0) {          if (!WIFEXITED(job->status) || WEXITSTATUS(job->status) != 0)
                 job_free(job);  /* calls cmd_if_shell_free */  
                 return;                  return;
         }  
   
         if (cmd_string_parse(cdata->cmd, &cmdlist, &cause) != 0) {          if (cmd_string_parse(cdata->cmd, &cmdlist, &cause) != 0) {
                 if (cause != NULL) {                  if (cause != NULL) {

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