File: syscall_test.go

package info (click to toggle)
golang-gopkg-mgo.v2 2016.08.01-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch-backports
  • size: 1,952 kB
  • sloc: ansic: 300; sh: 207; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 218 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build !windows

package mgo_test

import (
	"syscall"
)

func stop(pid int) (err error) {
	return syscall.Kill(pid, syscall.SIGSTOP)
}

func cont(pid int) (err error) {
	return syscall.Kill(pid, syscall.SIGCONT)
}