mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
ui/termstatus: extract background handling code
This commit is contained in:
9
internal/terminal/tcsetpgrp_unix.go
Normal file
9
internal/terminal/tcsetpgrp_unix.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build unix && !aix
|
||||
|
||||
package terminal
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
func Tcsetpgrp(fd int, pid int) error {
|
||||
return unix.IoctlSetPointerInt(fd, unix.TIOCSPGRP, pid)
|
||||
}
|
||||
Reference in New Issue
Block a user