macos,bsd: handle missing /dev/null in chroot env (#4689)
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
23632e9104
commit
51477bc711
@ -280,7 +280,7 @@ static int uv__async_start(uv_loop_t* loop) {
|
|||||||
* thus we create one for that, but this fd will not be actually used,
|
* thus we create one for that, but this fd will not be actually used,
|
||||||
* it's just a placeholder and magic number which is going to be closed
|
* it's just a placeholder and magic number which is going to be closed
|
||||||
* during the cleanup, as other FDs. */
|
* during the cleanup, as other FDs. */
|
||||||
err = uv__open_cloexec("/dev/null", O_RDONLY);
|
err = uv__open_cloexec("/", O_RDONLY);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user