mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
terminal: unexport tcgetpgrp, tcsetpgrp and getpgrp
This commit is contained in:
@@ -16,9 +16,9 @@ func IsProcessBackground(fd uintptr) bool {
|
||||
}
|
||||
|
||||
func isProcessBackground(fd int) (bg bool, err error) {
|
||||
pgid, err := Tcgetpgrp(fd)
|
||||
pgid, err := tcgetpgrp(fd)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
return pgid != Getpgrp(), nil
|
||||
return pgid != getpgrp(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user