mirror of
https://github.com/restic/restic.git
synced 2025-11-16 03:33:37 +00:00
Fix IsProcessBackground on Linux with stdin redirection
The previous implementation assumed that stdin was a terminal. It now checks the terminal's fd.
This commit is contained in:
@@ -4,6 +4,6 @@ package termstatus
|
||||
|
||||
// IsProcessBackground reports whether the current process is running in the
|
||||
// background. Not implemented for this platform.
|
||||
func IsProcessBackground() bool {
|
||||
func IsProcessBackground(uintptr) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user