/
githubmirror
/
rclone
Обзор
Документация
Войти
/
githubmirror
/
rclone
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
fs/daemon_unix.go
20 строк
439 B
albertony
build: remove build constraint syntax for go 1.16 and older
18 апр 2024, 17:53
18 апр 2024, 17:53
68bf6aa
Код
Авторство
О чём код?
// Daemonization interface for Unix platforms (common definitions) //go:build !windows && !plan9 && !js package fs import ( "os" ) // We use a special environment variable to let the child process know its role. const ( DaemonMarkVar = "_RCLONE_DAEMON_" DaemonMarkChild = "_rclone_daemon_" ) // IsDaemon returns true if this process runs in background func IsDaemon() bool { return os.Getenv(DaemonMarkVar) == DaemonMarkChild }