Return to job.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.54, 2018/11/19 13:35:41 | version 1.55, 2019/06/28 13:35:05 | ||
---|---|---|---|
|
|
||
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"); |