Skip to content

fs: fix memory FIFO EOF tracking - #752

Merged
ewhauser merged 1 commit into
mainfrom
ewhauser/fix-fifo-deadlock
Mar 27, 2026
Merged

ewhauser merged 1 commit into
mainfrom
ewhauser/fix-fifo-deadlock

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

  • fix MemoryFS FIFO readers so they remember an already-active writer and return EOF if that writer closes before the first Read
  • make blocked FIFO reads and writes observe Close() so context cancellation can unwind stuck goroutines
  • add deterministic FIFO regression tests for the missed-EOF and Close-unblocks-waiter cases

Testing

  • make lint
  • go test ./fs -run 'TestMemoryFIFO'\n- go test ./internal/runtime -run 'TestDdGNUCompatRegressions' -count=200 -timeout=60s\n- go test -race ./internal/runtime -run 'TestDdGNUCompatRegressions' -count=20 -timeout=120s\n- go test ./fs ./internal/runtime

@ewhauser
ewhauser merged commit b7badfe into main Mar 27, 2026
15 checks passed
@ewhauser
ewhauser deleted the ewhauser/fix-fifo-deadlock branch March 27, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant