syscall_test.go 218 B

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