mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-05-31 23:48:13 +00:00
f7c7db0b8d
Signed-off-by: Matthias Rampke <mr@soundcloud.com>
14 lines
214 B
Go
14 lines
214 B
Go
// +build linux aix
|
|
|
|
package logrus
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const ioctlReadTermios = unix.TCGETS
|
|
|
|
func isTerminal(fd int) bool {
|
|
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
|
|
return err == nil
|
|
}
|
|
|