mirror of
https://github.com/rclone/rclone.git
synced 2026-05-12 10:03:35 -04:00
Cleanup today is entirely per-goroutine via the stop closure that Start returns. If the driver process is killed or panics, those deferred stops never run and the underlying container keeps running. Track every remote Start has brought up in a process-local map, and expose CleanupAll which force-stops each tracked remote via the new run.bash "force-stop" verb. The returned stop closure is now sync.Once-wrapped so it and CleanupAll can both fire harmlessly. No callers yet; wired up in fstest/test_all in a follow-up commit.