Landing: 819afc442bd1
Project / Subsystem
gcc / libstdc++
Date
2026-09-16
Author
Gökbey Keskin
Commit
819afc442bd1e1b38f60fad174d80f677ab86bf0
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 819afc442bd1e1b38f60fad174d80f677ab86bf0
- source_type
- github
- headline
- Fix libstdc++ tests that open FIFOs with O_RDWR.
- tldr
- libstdc++ tests avoid undefined behavior by opening FIFOs with correct access modes.
- author
- Gökbey Keskin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • testsuite
- • io
- • posix
- discussion_id_link
- github:gcc-mirror/gcc#9964
- bugzilla_pr
- —
- date
- 2026-09-16T00:00:00.000Z
This commit addresses issues in libstdc++ tests that opened FIFOs with ios_base::in|ios_base::out (equivalent to O_RDWR). POSIX explicitly states the result is undefined when O_RDWR is applied to a FIFO. This commit changes the tests to open FIFOs with the necessary access mode only (read-only or write-only), preventing deadlocks and ensuring correct behavior on systems that strictly follow the POSIX standard.