Merge pull request #3150 from MichaelEischer/fix-windows-redir-output

termstatus: Fix canUpdateStatus detection for redirected output on windows
This commit is contained in:
Alexander Neumann
2020-12-06 21:17:27 +01:00
committed by GitHub
2 changed files with 11 additions and 2 deletions

View File

@@ -88,8 +88,8 @@ func canUpdateStatus(fd uintptr) bool {
return true
}
// check if the output file type is a pipe (0x0003)
if isPipe(fd) {
// check that the output file type is a pipe (0x0003)
if !isPipe(fd) {
return false
}