fvbock / endless

Zero downtime restarts for go servers (Drop in replacement for http.ListenAndServe)
MIT License
4.05k stars 342 forks source link

windows endless.go:64:11: undefined: syscall.SIGUSR1 #62

Open fmyxyz opened 2 years ago

fmyxyz commented 2 years ago

PS C:\Users\xxx\Workspace\xxx-xxx> go env set GO111MODULE= set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\xxx\AppData\Local\go-build set GOENV=C:\Users\xxx\AppData\Roaming\go\env set GOEXE=.exe set GOEXPERIMENT= set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOINSECURE= set GOMODCACHE=C:\Users\xxx\go\pkg\mod set GONOPROXY=.corp.example.com set GONOSUMDB=.corp.example.com set GOOS=windows set GOPATH=C:\Users\xxx\go set GOPRIVATE=*.corp.example.com set GOPROXY=https://proxy.golang.com.cn,direct set GOROOT=C:\Program Files\Go set GOSUMDB=sum.golang.org set GOTMPDIR= set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64 set GOVCS= set GOVERSION=go1.18.1 set GCCGO=gccgo set GOAMD64=v1 set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD=C:\Users\xxx\Workspace\xxx-xxx\go.mod set GOWORK= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\xxx\AppData\Local\Temp\go-build219240513=/tmp/go-build -gno-record-gcc-switches

FatalReadError commented 2 years ago

This repo hasn't been updated since 2016 with 13 outstanding pull requests, so unfortunately this issue is unlikely to be resolved. Perhaps you could look at other Golang graceful restarts libraries, or just remove the offending signal(s) from that list (if that's the only issue).