Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: remap invalid file descriptors using dup2 #44461

Merged
merged 1 commit into from Oct 26, 2022

Commits on Sep 1, 2022

  1. src: remap invalid file descriptors using dup2

    When checking for the validity of the stdio file descriptors
    (nodejs#875), ones which don't exist are intended to be remapped to
    /dev/null (and, if that doesn't work, we abort).
    
    This however doesn't work on all platforms and in all cases, and is not
    anymore required by POSIX; instead, use the `dup2` syscall as a more
    robust solution (conforms to POSIX.1).
    
    Fixes: nodejs/help#2411
    Refs: nodejs#875
    obiwac committed Sep 1, 2022
    Copy the full SHA
    326a490 View commit details
    Browse the repository at this point in the history