Revert "mount: fix macOS not noticing errors with --daemon"
Unfortunately this does not compile on all platforms and the fix is
too big for the point release.
This reverts commit 5a22dad9a7
.
This commit is contained in:
parent
6b61967507
commit
4a297b35e5
1 changed files with 0 additions and 8 deletions
|
@ -10,7 +10,6 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/rclone/rclone/cmd"
|
"github.com/rclone/rclone/cmd"
|
||||||
|
@ -223,13 +222,6 @@ func NewMountCommand(commandName string, hidden bool, mount MountFn) *cobra.Comm
|
||||||
err = WaitMountReady(mnt.MountPoint, Opt.DaemonWait)
|
err = WaitMountReady(mnt.MountPoint, Opt.DaemonWait)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
killDaemon("Daemon timed out")
|
killDaemon("Daemon timed out")
|
||||||
} else {
|
|
||||||
// Double check daemon is still alive
|
|
||||||
// on non Linux OSes WaitMountReady is just a no-op
|
|
||||||
err = daemon.Signal(syscall.Signal(0))
|
|
||||||
if err != nil {
|
|
||||||
err = fmt.Errorf("daemon has died: %w", err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
atexit.Unregister(handle)
|
atexit.Unregister(handle)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue