mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
Eliminate Pid() function
This commit is contained in:
+1
-5
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user