github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/gopkg.in/mgo.v2/syscall_test.go (about)

     1  // +build !windows
     2  
     3  package mgo_test
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  func stop(pid int) (err error) {
    10  	return syscall.Kill(pid, syscall.SIGSTOP)
    11  }
    12  
    13  func cont(pid int) (err error) {
    14  	return syscall.Kill(pid, syscall.SIGCONT)
    15  }