From 0796bcdb3f2f21101cc15b637f94b91df24f2464 Mon Sep 17 00:00:00 2001 From: Harneet Virk Date: Wed, 10 Aug 2016 12:58:50 -0700 Subject: [PATCH] Commenting the call for syscall which is OS dependent. --- logger.go | 6 +++--- main.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/logger.go b/logger.go index 4889c446..23a00e00 100644 --- a/logger.go +++ b/logger.go @@ -14,7 +14,7 @@ import ( "fmt" log "github.com/cihub/seelog" "os" - "syscall" + //"syscall" "time" ) @@ -51,8 +51,8 @@ func openOutLog(filename string) *os.File { // Redirect stdout and stderr to out file logFile, _ := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE|os.O_SYNC, 0644) - syscall.Dup2(int(logFile.Fd()), 1) - syscall.Dup2(int(logFile.Fd()), 2) + //syscall.Dup2(int(logFile.Fd()), 1) + //syscall.Dup2(int(logFile.Fd()), 2) return logFile } diff --git a/main.go b/main.go index 5cdb191e..bc44a3f7 100644 --- a/main.go +++ b/main.go @@ -16,9 +16,9 @@ import ( log "github.com/cihub/seelog" "github.com/samuel/go-zookeeper/zk" "os" - "os/signal" + //"os/signal" "runtime" - "syscall" + //"syscall" "time" ) @@ -148,7 +148,7 @@ func burrowMain() int { // Register signal handlers for exiting exitChannel := make(chan os.Signal, 1) - signal.Notify(exitChannel, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGSTOP, syscall.SIGTERM) + //signal.Notify(exitChannel, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGSTOP, syscall.SIGTERM) // Wait until we're told to exit <-exitChannel