Eio, OCaml's I/O library, now resolves symlinks correctly on Windows, and a fix stops a failing Unix socket listener from deleting a working listener's socket file.
Features
-
Windows symlink support – Eio's file operations on Windows now resolve symlinks, junctions, and reparse points without leaving the sandbox. Tools such as Forester can traverse directory trees that contain links on Windows. (#968)
-
Immediate hook cleanup – A new option on the switch hook removal function runs the hook's cleanup actions at the moment of removal, replacing the previous two-step pattern of removing the hook and then cleaning up separately. (#972)
Fixes
-
Daemon-fiber error reporting – When a switch encounters an error, the actual exception is now recorded before daemon fibers are cancelled, so error queries return the real cause rather than a generic cancellation message. (#978)
-
Unix socket bind safety – A second listener that fails to bind to a Unix path no longer removes the first listener's socket file. The cleanup hook is registered only after the bind succeeds. (#971)
-
Sandbox trailing-slash escape – A trailing slash on the final path component no longer follows a symlink out of the sandbox boundary. The path is now treated as if a dot were appended, matching the behaviour on Linux. (#967)
-
Unix socket close – Closing a Unix-domain socket now removes its file immediately instead of waiting for the enclosing switch to finish. Unlink failures are no longer surfaced as errors. (#977)