diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-06-19 17:36:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 17:36:55 +0200 |
commit | c211b3ff6a71413dbeba90f8ec8f13fec9622291 (patch) | |
tree | ae2ed64fa16c19baaaf682e8c09334971b3de341 /vendor/github.com/sirupsen/logrus/terminal_solaris.go | |
parent | 7be87f5551ca36d30518dcd62d623c4d45bb830b (diff) | |
parent | d0d9a4c9b1f525ad1132947cf883fdd66941fe62 (diff) | |
download | podman-c211b3ff6a71413dbeba90f8ec8f13fec9622291.tar.gz podman-c211b3ff6a71413dbeba90f8ec8f13fec9622291.tar.bz2 podman-c211b3ff6a71413dbeba90f8ec8f13fec9622291.zip |
Merge pull request #3364 from jwhonce/wip/logrus
Vendor in logrus v1.4.2
Diffstat (limited to 'vendor/github.com/sirupsen/logrus/terminal_solaris.go')
-rw-r--r-- | vendor/github.com/sirupsen/logrus/terminal_solaris.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/github.com/sirupsen/logrus/terminal_solaris.go b/vendor/github.com/sirupsen/logrus/terminal_solaris.go deleted file mode 100644 index 3c86b1abe..000000000 --- a/vendor/github.com/sirupsen/logrus/terminal_solaris.go +++ /dev/null @@ -1,21 +0,0 @@ -// +build solaris,!appengine - -package logrus - -import ( - "io" - "os" - - "golang.org/x/sys/unix" -) - -// IsTerminal returns true if the given file descriptor is a terminal. -func IsTerminal(f io.Writer) bool { - switch v := f.(type) { - case *os.File: - _, err := unix.IoctlGetTermios(int(v.Fd()), unix.TCGETA) - return err == nil - default: - return false - } -} |