Skip to content

Commit

Permalink
Fix windows process.
Browse files Browse the repository at this point in the history
Signed-off-by: David Calavera <david.calavera@gmail.com>
  • Loading branch information
calavera committed Feb 8, 2016
1 parent cc3c5ac commit 3c3cfa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions process_posix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !windows

package plugin

import (
Expand Down
4 changes: 1 addition & 3 deletions process_windows.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package plugin

import (
"os"
"syscall"
)

Expand All @@ -22,8 +21,7 @@ func _pidAlive(pid int) bool {
}

var ec uint32
e = syscall.GetExitCodeProcess(h, &ec)
if e != nil {
if e := syscall.GetExitCodeProcess(h, &ec); e != nil {
return false
}

Expand Down

0 comments on commit 3c3cfa9

Please sign in to comment.