1
mirror of https://github.com/rclone/rclone synced 2025-01-21 02:27:30 +01:00
rclone/lib/atexit
Fabian Möller d022c81d99 mount: ensure atexit gets run on interrupt
When running `rclone mount`, there were 2 signal handlers for `os.Interrupt`.

Those handlers would run concurrently and in some cases cause either unmount or `atexit.Run()` being skipped.

In addition `atexit.Run()` will get called in `resolveExitCode` to ensure cleanup on errors.
2018-05-12 10:40:44 +01:00
..
atexit.go mount: ensure atexit gets run on interrupt 2018-05-12 10:40:44 +01:00