github.com/manicqin/nomad@v0.9.5/command/alloc_exec_unix.go (about)

     1  // +build darwin dragonfly freebsd linux netbsd openbsd solaris
     2  
     3  package command
     4  
     5  import (
     6  	"os"
     7  	"os/signal"
     8  
     9  	"golang.org/x/sys/unix"
    10  )
    11  
    12  func setupWindowNotification(ch chan<- os.Signal) {
    13  	signal.Notify(ch, unix.SIGWINCH)
    14  }