
logrus v1.0.3 was the first release that include the change in terminal_windows.go that stops exec'ing "cmd ver" to obtain the version information and rather uses the x/sys/crypto/terminal.IsTerminal on the console fd. On Windows this is a significant performance difference to avoid the additional process activation of the "cmd ver" for each invocation of the shim/runhcs executables. Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
11 lines
186 B
Go
11 lines
186 B
Go
// +build darwin freebsd openbsd netbsd dragonfly
|
|
// +build !appengine
|
|
|
|
package logrus
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const ioctlReadTermios = unix.TIOCGETA
|
|
|
|
type Termios unix.Termios
|