blob: 0c81c0c792483b3c052740f346a90a9164764e5b [file] [log] [blame]
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build linux
// (We only care about Linux on GKE for now)
package main
import (
"os"
"os/signal"
"syscall"
)
func init() {
registerSignal = registerSignalUnix
}
func registerSignalUnix(c chan<- os.Signal) {
signal.Notify(c, syscall.SIGINT, syscall.SIGTERM)
}