You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WSL2 does not set up file descriptors for sub processes on the host #14201
Run node wslParent.mjs inside the WSL's Ubuntu terminal.
Expected Behavior
This should print the child fd3 test. If you replace node.exe with node to use the node within Ubuntu it works. If node.exe on the host is used, it fails.
Actual Behavior
It errors: "Error: EBADF: bad file descriptor, close" indicating that the file descriptor was not opened.
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done.
If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues
Once completed please upload the output files to this GitHub issue.
If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
It looks like you're trying to pass a fd from a Linux process running inside WSL to a Windows process, which is unsupported (there's no way to have file descriptors in Linux be used from Windows).
Activity
github-actions commentedon Feb 12, 2026
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done.
If this is a networking issue, please use
.\collect-wsl-logs.ps1 -LogProfile networkinginstead, following the instructions in Collect WSL logs for networking issuesOnce completed please upload the output files to this GitHub issue.
See Collect WSL logs (recommended method).
If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
OrKoN commentedon Feb 12, 2026
/emailed-logs
github-actions commentedon Feb 12, 2026
Diagnostic information
OneBlue commentedon Feb 24, 2026
Thank you for reporting this Alex Rudenko (@OrKoN).
It looks like you're trying to pass a fd from a Linux process running inside WSL to a Windows process, which is unsupported (there's no way to have file descriptors in Linux be used from Windows).
Closing since this is by design.