Skip to content

Commit

Permalink
ochinchina#135: Windows Error: reaper.go:23:22: undefined: syscall.SI…
Browse files Browse the repository at this point in the history
…GCHLD
  • Loading branch information
stou committed May 4, 2019
1 parent 070c4a1 commit 80b2f61
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bufio"
"fmt"
"github.com/jessevdk/go-flags"
reaper "github.com/ochinchina/go-reaper"
log "github.com/sirupsen/logrus"
"os"
"os/signal"
Expand Down Expand Up @@ -132,7 +131,7 @@ func RunServer() {
}

func main() {
go reaper.Reap()
ReapZombie()

if _, err := parser.Parse(); err != nil {
flagsErr, ok := err.(*flags.Error)
Expand Down
10 changes: 10 additions & 0 deletions zombie_reaper.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// +build !windows

package main
import (
reaper "github.com/ochinchina/go-reaper"
)

func ReapZombie() {
go reaper.Reap()
}
6 changes: 6 additions & 0 deletions zombie_reaper_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// +build windows

package main

func ReapZombie() {
}

0 comments on commit 80b2f61

Please sign in to comment.