Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Windows does not support this type of check, so disable if windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Nov 17, 2018
1 parent 82c7c68 commit e097cfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion environments/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"io"
"os"
"os/exec"
"runtime"
"strconv"
"sync"
"syscall"
Expand Down Expand Up @@ -121,7 +122,7 @@ func (s *standard) IsRunning() (isRunning bool, err error) {
process, pErr := os.FindProcess(s.mainProcess.Process.Pid)
if process == nil || pErr != nil {
isRunning = false
} else if process.Signal(syscall.Signal(0)) != nil {
} else if runtime.GOOS == "linux" && process.Signal(syscall.Signal(0)) != nil {
isRunning = false
}
}
Expand Down

0 comments on commit e097cfe

Please sign in to comment.