René's URL Explorer Experiment


Title: stat.isFIFO() is wrongly marked as always false on Windows, even when piping into a node process · Issue #57603 · nodejs/node · GitHub

Open Graph Title: stat.isFIFO() is wrongly marked as always false on Windows, even when piping into a node process · Issue #57603 · nodejs/node

X Title: stat.isFIFO() is wrongly marked as always false on Windows, even when piping into a node process · Issue #57603 · nodejs/node

Description: Version v22.14.0 Platform Microsoft Windows NT 10.0.26120.0 x64 [although this is on ARM64] Subsystem No response What steps will reproduce the bug? Running echo '{}' | node -e 'console.log(require("fs").fstatSync(0).mode)' in PowerShell...

Open Graph Description: Version v22.14.0 Platform Microsoft Windows NT 10.0.26120.0 x64 [although this is on ARM64] Subsystem No response What steps will reproduce the bug? Running echo '{}' | node -e 'console.log(require...

X Description: Version v22.14.0 Platform Microsoft Windows NT 10.0.26120.0 x64 [although this is on ARM64] Subsystem No response What steps will reproduce the bug? Running echo '{}' | node -e 'console...

Opengraph URL: https://github.com/nodejs/node/issues/57603

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stat.isFIFO() is wrongly marked as always false on Windows, even when piping into a node process","articleBody":"### Version\n\nv22.14.0\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.26120.0 x64 [although this is on ARM64]\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nRunning `echo '{}' | node -e 'console.log(require(\"fs\").fstatSync(0).mode)'` in PowerShell (as cmd doesn't seem to support pipes via the usual syntax) returns 4096, and checking `fs.constants`, `S_IFIFO` is set to `4096`. \n\n### How often does it reproduce? Is there a required condition?\n\nSeems to be all the time on Windows when you try to pipe something in, which is due to a (I assume legacy?) check here: https://github.com/nodejs/node/blob/c3b6f949748b49ef25b0239bd4582d29976fdbad/lib/internal/fs/utils.js#L538-L541\n\n### What is the expected behavior? Why is that the expected behavior?\n\nOn Windows, `stat.isFIFO()` should correctly handle pipes and `stat.isFIFO()` should correctly return `true` when piped in\n\n### What do you see instead?\n\n`stat.isFIFO()` always returns false on Windows, even if the mode has the flag set\n\n### Additional information\n\nI would love to submit a PR to fix this, but I am not sure if those checks are there for a reason or for legacy purposes (it seems that at least the S_ISFIFO is now exposed but it wasn't before [?]), and if it can be edited safely. ","author":{"url":"https://github.com/vladfrangu","@type":"Person","name":"vladfrangu"},"datePublished":"2025-03-24T09:13:32Z","url":"https://github.com/nodejs/node/issues/57603"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7378a375-6c45-1f3a-9eaf-e86b4098047e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBEEC:1E80BA:3F6EC9:55C84E:6B061F19
html-safe-nonce2e7b3ce2329578904ed65e3436db1dd300692c94915a89e6e90b1d223ae9d2ab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUVDOjFFODBCQTozRjZFQzk6NTVDODRFOjZCMDYxRjE5IiwidmlzaXRvcl9pZCI6IjcyNjIyMzk0MDEzMzE5OTY0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac060b5cdb4833d583590fdc347e557c873a1a36584aea420c60325d4aa5dbc25b
hovercard-subject-tagissue:2942545233
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/57603/issue_layout
twitter:imagehttps://opengraph.githubassets.com/213070eafff92d4dac7830d4aa1f0f875ba67dbf177949369b2955604b0ad056/nodejs/node/issues/57603
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/213070eafff92d4dac7830d4aa1f0f875ba67dbf177949369b2955604b0ad056/nodejs/node/issues/57603
og:image:altVersion v22.14.0 Platform Microsoft Windows NT 10.0.26120.0 x64 [although this is on ARM64] Subsystem No response What steps will reproduce the bug? Running echo '{}' | node -e 'console.log(require...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevladfrangu
hostnamegithub.com
expected-hostnamegithub.com
None9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb25c3080e84402f75431d8dc7a96b2635219cec7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/57603#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F57603
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F57603
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/57603
Reloadhttps://github.com/nodejs/node/issues/57603
Reloadhttps://github.com/nodejs/node/issues/57603
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues630 (630)https://github.com/nodejs/node/issues
Pull requests660 (660)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/insights
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57603
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57603
stat.isFIFO() is wrongly marked as always false on Windows, even when piping into a node processhttps://github.com/nodejs/node/issues/57603#top
fshttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
windowshttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22windows%22
https://github.com/vladfrangu
vladfranguhttps://github.com/vladfrangu
on Mar 24, 2025https://github.com/nodejs/node/issues/57603#issue-2942545233
node/lib/internal/fs/utils.jshttps://github.com/nodejs/node/blob/c3b6f949748b49ef25b0239bd4582d29976fdbad/lib/internal/fs/utils.js#L538-L541
c3b6f94https://github.com/nodejs/node/commit/c3b6f949748b49ef25b0239bd4582d29976fdbad
Nexthttps://github.com/nodejs/node/issues/57603?timeline_page=1
https://github.com/bnoordhuis
bnoordhuishttps://github.com/bnoordhuis
on Mar 25, 2025https://github.com/nodejs/node/issues/57603#issuecomment-2750687731
bnoordhuishttps://github.com/bnoordhuis
fshttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
windowshttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22windows%22
on Mar 25, 2025https://github.com/nodejs/node/issues/57603#event-16971165986
https://github.com/vladfrangu
vladfranguhttps://github.com/vladfrangu
on Mar 26, 2025https://github.com/nodejs/node/issues/57603#issuecomment-2754456552
https://github.com/bnoordhuis
bnoordhuishttps://github.com/bnoordhuis
on Mar 26, 2025https://github.com/nodejs/node/issues/57603#issuecomment-2754560470
https://github.com/vladfrangu
vladfranguhttps://github.com/vladfrangu
on Mar 26, 2025https://github.com/nodejs/node/issues/57603#issuecomment-2754769460
https://private-user-images.githubusercontent.com/17960496/427090777-21ff6f7b-364b-45fc-ab96-7e400d84e650.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NjM1OTEsIm5iZiI6MTc5NTU2MzI5MSwicGF0aCI6Ii8xNzk2MDQ5Ni80MjcwOTA3NzctMjFmZjZmN2ItMzY0Yi00NWZjLWFiOTYtN2U0MDBkODRlNjUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI0VDIzMzQ1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM2OWEzZDM1MzM1ZGIyZmJkMGQwZWQzODEzMWJlODI2MzU3ZjMxMjk0NWMyZjU4MzQ0ODEyNjI5OWI2ZTk5YzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.ia4O5I-s0RV3PeC1giofonwGYd1K8xY8d9br8IEUxaQ
https://github.com/bnoordhuis
bnoordhuishttps://github.com/bnoordhuis
on Mar 26, 2025https://github.com/nodejs/node/issues/57603#issuecomment-2755729669
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Apr 20, 2026https://github.com/nodejs/node/issues/57603#issuecomment-4277985601
GitHub Actionshttps://help.github.com/en/actions
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jul 24, 2026https://github.com/nodejs/node/issues/57603#issuecomment-5065302969
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Jul 24, 2026https://github.com/nodejs/node/issues/57603#event-28413080869
https://github.com/ExE-Boss
ExE-Bosshttps://github.com/ExE-Boss
on Jul 24, 2026https://github.com/nodejs/node/issues/57603#issuecomment-5071979192
never‑stalehttps://github.com/nodejs/node/issues/labels/never-stale
vladfranguhttps://github.com/vladfrangu
on Jul 24, 2026https://github.com/nodejs/node/issues/57603#event-28453179863
os: expose `guessFileDescriptorType`https://github.com/vladfrangu/node/commit/fb6ddc16822e2dca65c1e911c032b16431e26487
fb6ddc1https://github.com/vladfrangu/node/commit/fb6ddc16822e2dca65c1e911c032b16431e26487
https://github.com/vladfrangu
vladfranguhttps://github.com/vladfrangu
on Jul 24, 2026https://github.com/nodejs/node/issues/57603#issuecomment-5073682184
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Jul 25, 2026https://github.com/nodejs/node/issues/57603#event-28463725285
vladfranguhttps://github.com/vladfrangu
on Aug 25, 2026https://github.com/nodejs/node/issues/57603#event-29976123475
os: expose `guessFileDescriptorType`https://github.com/vladfrangu/node/commit/9b76d5d73ba91ec730ce8218b4ee35614099b41d
9b76d5dhttps://github.com/vladfrangu/node/commit/9b76d5d73ba91ec730ce8218b4ee35614099b41d
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 24, 2026https://github.com/nodejs/node/issues/57603#issuecomment-6378152949
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Oct 24, 2026https://github.com/nodejs/node/issues/57603#event-34104639910
https://github.com/vladfrangu
vladfranguhttps://github.com/vladfrangu
on Oct 24, 2026https://github.com/nodejs/node/issues/57603#issuecomment-6384802931
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Oct 25, 2026https://github.com/nodejs/node/issues/57603#event-34159094749
vladfranguhttps://github.com/vladfrangu
on Nov 18, 2026https://github.com/nodejs/node/issues/57603#event-36544959451
os: expose `guessFileDescriptorType`https://github.com/vladfrangu/node/commit/72200ac1917cb2c1f52b8d099dd197502f763e16
72200achttps://github.com/vladfrangu/node/commit/72200ac1917cb2c1f52b8d099dd197502f763e16
os: expose `guessFileDescriptorType`https://github.com/vladfrangu/node/commit/10c20e343ba7953a363d9777d616873b82ba6bc8
10c20e3https://github.com/vladfrangu/node/commit/10c20e343ba7953a363d9777d616873b82ba6bc8
Ethan-Arrowoodhttps://github.com/Ethan-Arrowood
on Nov 19, 2026https://github.com/nodejs/node/issues/57603#event-36681963076
os: expose `guessFileDescriptorType`https://github.com/nodejs/node/commit/42800b60d33ffa7c8331307418272bdda63fbc5f
42800b6https://github.com/nodejs/node/commit/42800b60d33ffa7c8331307418272bdda63fbc5f
aduh95https://github.com/aduh95
on Nov 20, 2026https://github.com/nodejs/node/issues/57603#event-36772602414
os: expose `guessFileDescriptorType`https://github.com/nodejs/node/commit/82d6f5dd1b4cd147ec2dd5c9f264f49def63db0d
82d6f5dhttps://github.com/nodejs/node/commit/82d6f5dd1b4cd147ec2dd5c9f264f49def63db0d
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/57603
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57603
fshttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22fs%22
windowshttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22windows%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.