diff --git a/cmd/micro/actions_other.go b/cmd/micro/actions_other.go index 567bc4f5..ddc33f4a 100644 --- a/cmd/micro/actions_other.go +++ b/cmd/micro/actions_other.go @@ -1,4 +1,4 @@ -// +build !linux +// +build android plan9 nacl windows package main diff --git a/cmd/micro/actions_linux.go b/cmd/micro/actions_posix.go similarity index 85% rename from cmd/micro/actions_linux.go rename to cmd/micro/actions_posix.go index f119eaa2..7253e392 100644 --- a/cmd/micro/actions_linux.go +++ b/cmd/micro/actions_posix.go @@ -1,3 +1,4 @@ +// +build linux darwin dragonfly solaris openbsd netbsd freebsd package main import "syscall" @@ -19,8 +20,7 @@ func (v *View) Suspend(usePlugin bool) bool { // suspend the process pid := syscall.Getpid() - tid := syscall.Gettid() - err := syscall.Tgkill(pid, tid, syscall.SIGSTOP) + err := syscall.Kill(pid, syscall.SIGSTOP) if err != nil { TermMessage(err) }