Skip to content

Prevent Linux ETXTBSY races in MCP stdio tests - #48724

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f99952ec000ba7317243e87fd664dc0e31bb7b24
Sep 27, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f99952ec000ba7317243e87fd664dc0e31bb7b24

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Prevent Linux ETXTBSY races in MCP stdio tests

Why

Concurrent test spawns can inherit a writable descriptor for the MCP server
wrapper, causing ETXTBSY when launching it on Linux.

What changed

Write the wrapper through a separate /bin/sh process on Linux so its writable
descriptor stays out of the test process. Check the writer's exit status and
include stderr on failure. Retain direct file writes on other Unix platforms.

## Why

Concurrent test spawns can inherit a writable descriptor for the MCP server
wrapper, causing `ETXTBSY` when launching it on Linux.

## What changed

Write the wrapper through a separate `/bin/sh` process on Linux so its writable
descriptor stays out of the test process. Check the writer's exit status and
include stderr on failure. Retain direct file writes on other Unix platforms.

GitOrigin-RevId: f99952ec000ba7317243e87fd664dc0e31bb7b24
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/f99952ec000ba7317243e87fd664dc0e31bb7b24 branch from bdb5f4a to 274d41a Compare September 27, 2026 14:55
@copyberry
copyberry Bot merged commit 274d41a into main Sep 27, 2026
3 of 4 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/f99952ec000ba7317243e87fd664dc0e31bb7b24 branch September 27, 2026 14:55
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant