This adds a Windows TERM signal which makes propagation of termination to containers work properly. Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com>
19 lines
280 B
Go
19 lines
280 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package symlink
|
|
|
|
import (
|
|
"path/filepath"
|
|
)
|
|
|
|
func evalSymlinks(path string) (string, error) {
|
|
return filepath.EvalSymlinks(path)
|
|
}
|
|
|
|
func isDriveOrRoot(p string) bool {
|
|
return p == string(filepath.Separator)
|
|
}
|
|
|
|
var isAbs = filepath.IsAbs
|