github.com/hernad/nomad@v1.6.112/command/alloc_exec_unix.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 5 // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 7 package command 8 9 import ( 10 "os" 11 "os/signal" 12 13 "golang.org/x/sys/unix" 14 ) 15 16 func setupWindowNotification(ch chan<- os.Signal) { 17 signal.Notify(ch, unix.SIGWINCH) 18 }