Skip to content

Exit after unmount even while stdin stays open - #14

Open
thomasjm wants to merge 5 commits into
mainfrom
exit-after-unmount
Open

thomasjm wants to merge 5 commits into
mainfrom
exit-after-unmount

Conversation

@thomasjm

@thomasjm thomasjm commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor
  • mount9p-fuse now exits once unmounted even if its stdin stays open. Before, tokio waited at shutdown for the thread reading stdin. The library's mount() docs note the same pitfall.
  • Test harness:
    • If a mount's FUSE session is still running 5s after unmounting, abort its connection instead of hanging. A process that copies the mount namespace while a test mount is up (a nix build sandbox, a container, unshare -m) keeps the filesystem alive after fusermount3 -u succeeds. Reproduced by running the tests alongside a sandboxed nix build.
    • Wait for diod to accept connections: it logs "Listening on" after bind but before listen, so an early connect could be refused.

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