github.com/markusbkk/elvish@v0.0.0-20231204143114-91dc52438621/pkg/sys/eunix/tc.go (about)

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