mirror of https://github.com/dapr/cli.git
19 lines
407 B
Go
19 lines
407 B
Go
// +build !windows
|
|
|
|
// ------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation and Dapr Contributors.
|
|
// Licensed under the MIT License.
|
|
// ------------------------------------------------------------
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
)
|
|
|
|
func setupShutdownNotify(sigCh chan os.Signal) {
|
|
signal.Notify(sigCh, syscall.SIGTERM, syscall.SIGINT)
|
|
}
|