[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.54 and 1.55

version 1.54, 2018/11/19 13:35:41 version 1.55, 2019/06/28 13:35:05
Line 118 
Line 118 
                 close(out[0]);                  close(out[0]);
   
                 nullfd = open(_PATH_DEVNULL, O_RDWR, 0);                  nullfd = open(_PATH_DEVNULL, O_RDWR, 0);
                 if (nullfd < 0)                  if (nullfd == -1)
                         fatal("open failed");                          fatal("open failed");
                 if (dup2(nullfd, STDERR_FILENO) == -1)                  if (dup2(nullfd, STDERR_FILENO) == -1)
                         fatal("dup2 failed");                          fatal("dup2 failed");

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55