Merge branch 'obsd-master' into master

This commit is contained in:
Thomas Adam
2021-10-25 00:01:11 +01:00
2 changed files with 2 additions and 2 deletions

2
job.c
View File

@ -140,7 +140,7 @@ job_run(const char *cmd, int argc, char **argv, struct environ *e, struct sessio
close(out[1]);
close(out[0]);
nullfd = open(_PATH_DEVNULL, O_RDWR, 0);
nullfd = open(_PATH_DEVNULL, O_RDWR);
if (nullfd == -1)
fatal("open failed");
if (dup2(nullfd, STDERR_FILENO) == -1)