mirror of
https://github.com/rclone/rclone.git
synced 2025-11-23 21:44:49 +02:00
* Adds "aix/ppc64" to the cross-compile target list. * Including AIX in the build tag of "metadata_other.go". * Excluding AIX from the main ncdu build tags. * Marking AIX as an unsupported platform for ncdu. * Excluding AIX from the fallback redirect implementation. * Excluding AIX from unix build tags to avoid undefined unix.WNOHANG.
23 lines
516 B
Go
23 lines
516 B
Go
//go:build !unix || aix
|
|
|
|
// Package daemonize provides daemonization stub for non-Unix platforms.
|
|
package daemonize
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
var errNotSupported = fmt.Errorf("daemon mode is not supported on the %s platform", runtime.GOOS)
|
|
|
|
// StartDaemon runs background twin of current process.
|
|
func StartDaemon(args []string) (*os.Process, error) {
|
|
return nil, errNotSupported
|
|
}
|
|
|
|
// Check returns non nil if the daemon process has died
|
|
func Check(daemon *os.Process) error {
|
|
return errNotSupported
|
|
}
|