...

Source file src/github.com/shirou/gopsutil/process/process_posix_test.go

Documentation: github.com/shirou/gopsutil/process

     1  // +build linux freebsd
     2  
     3  package process
     4  
     5  import (
     6  	"os"
     7  	"testing"
     8  
     9  	"golang.org/x/sys/unix"
    10  )
    11  
    12  func Test_SendSignal(t *testing.T) {
    13  	checkPid := os.Getpid()
    14  
    15  	p, _ := NewProcess(int32(checkPid))
    16  	err := p.SendSignal(unix.SIGCONT)
    17  	if err != nil {
    18  		t.Errorf("send signal %v", err)
    19  	}
    20  }
    21  

View as plain text