Eliminate Pid() function

This commit is contained in:
Peter Waller
2014-05-21 19:49:13 +01:00
parent 16953497ba
commit 1b47f05224
+1 -5
View File
@@ -28,10 +28,6 @@ func (p *Process) Start() error {
}
func (p *Process) Signal(signal syscall.Signal) {
group, _ := os.FindProcess(-1 * p.Pid())
group, _ := os.FindProcess(-1 * p.Process.Pid)
group.Signal(signal)
}
func (p *Process) Pid() int {
return p.Process.Pid
}