Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: client/cmd/logdog_butler/main_windows.go

Issue 2114253002: LogDog Butler: Catch SIGTERM on Linux. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/cmd/logdog_butler/main_posix.go ('k') | client/cmd/logdog_butler/streamserver_posix.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cmd/logdog_butler/main_windows.go
diff --git a/client/cmd/logdog_butler/streamserver_windows.go b/client/cmd/logdog_butler/main_windows.go
similarity index 88%
rename from client/cmd/logdog_butler/streamserver_windows.go
rename to client/cmd/logdog_butler/main_windows.go
index 7977eedd09c72aab8ff70719c6a490d06edc296c..690d501104a9d959b4705d8527fe16c791d5d32b 100644
--- a/client/cmd/logdog_butler/streamserver_windows.go
+++ b/client/cmd/logdog_butler/main_windows.go
@@ -7,6 +7,7 @@ package main
import (
"errors"
"fmt"
+ "os"
"github.com/luci/luci-go/client/internal/logdog/butler/streamserver"
"golang.org/x/net/context"
@@ -19,6 +20,12 @@ const (
exampleStreamServerURI = streamServerURI("net.pipe:logdog-butler")
)
+// interruptSignals is the set of signals to handle gracefully (e.g., flush,
+// shutdown).
+var interruptSignals = []os.Signal{
+ os.Interrupt,
+}
+
type streamServerURI string
func (u streamServerURI) Parse() (string, error) {
« no previous file with comments | « client/cmd/logdog_butler/main_posix.go ('k') | client/cmd/logdog_butler/streamserver_posix.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698