This commit is contained in:
Zachary Yedidia
2017-07-31 22:24:46 -04:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
// +build !linux // +build android plan9 nacl windows
package main package main

View File

@@ -1,3 +1,4 @@
// +build linux darwin dragonfly solaris openbsd netbsd freebsd
package main package main
import "syscall" import "syscall"
@@ -19,8 +20,7 @@ func (v *View) Suspend(usePlugin bool) bool {
// suspend the process // suspend the process
pid := syscall.Getpid() pid := syscall.Getpid()
tid := syscall.Gettid() err := syscall.Kill(pid, syscall.SIGSTOP)
err := syscall.Tgkill(pid, tid, syscall.SIGSTOP)
if err != nil { if err != nil {
TermMessage(err) TermMessage(err)
} }