src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/sys/eunix/tc.go (about)

     1  //go:build unix
     2  
     3  package eunix
     4  
     5  import (
     6  	"golang.org/x/sys/unix"
     7  )
     8  
     9  // Tcsetpgrp sets the terminal foreground process group.
    10  func Tcsetpgrp(fd int, pid int) error {
    11  	return unix.IoctlSetPointerInt(fd, unix.TIOCSPGRP, pid)
    12  }