forked from TrueCloudLab/rclone
Added an interface and machinery for resuming failed uploads. Implemented this interface in the local backend. Later on it can be implemented by any supporting backend. Fixes #87
23 lines
312 B
Go
23 lines
312 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package operations
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
"syscall"
|
|
)
|
|
|
|
func sendInterrupt() error {
|
|
p, err := os.FindProcess(syscall.Getpid())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
err = p.Signal(os.Interrupt)
|
|
return err
|
|
}
|
|
|
|
func setupCmd(cmd *exec.Cmd) {
|
|
// Only needed for windows
|
|
}
|