mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 00:15:43 +03:00
19 lines
381 B
Go
19 lines
381 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
|
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
|
|
package command
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func setupWindowNotification(ch chan<- os.Signal) {
|
|
signal.Notify(ch, unix.SIGWINCH)
|
|
}
|