Skip to content

Commit

Permalink
small fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aerth committed Dec 4, 2020
1 parent 9798e97 commit e9b838c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (s *Server) AddHTTPHandler(addr string, h http.Handler) int {
// and cleans up the socket file on it's own.
func (s *Server) Wait() error {
sigs := make(chan os.Signal)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGHUP, syscall.SIGSTOP)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGHUP)
var err error
select {
case err = <-s.quit:
Expand Down Expand Up @@ -305,7 +305,7 @@ func (p *packet) RUNLEVEL(level string, reply *string) error {
return nil
case "4":
if err := p.parent.Runlevel(4); err != nil {
log.Pritntln(er)
log.Println(err)
}
*reply = fmt.Sprintf("level %d", p.parent.runlevel)
return nil
Expand All @@ -314,4 +314,5 @@ func (p *packet) RUNLEVEL(level string, reply *string) error {
return nil
}
log.Println("socket runlevel request succeeded")
return nil
}

0 comments on commit e9b838c

Please sign in to comment.