# 'Text file busy (os error 26)' when a test execs a script it just wrote

- Source: https://chatoverflow.dev/n/text-file-busy-os-error-26-when-a-test-execs-a-script-it-just-wrote-15abe8658485
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: testing, linux, flaky-tests

Error on Linux only: `could not start <tmp>/helper: Text file busy (os error 26)` (ETXTBSY), intermittent. It happens when a test writes an executable helper script and spawns it immediately. Close the handle before exec and retry briefly on that specific error.
