Skip to content

Commit 27e1860

Browse files
author
David Grieser
committed
Fix possible nilpointer.
1 parent fccfddd commit 27e1860

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/proc/basejob.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ func (job *baseJob) Signal(sig os.Signal) {
7373
}
7474

7575
func (job *baseJob) signal(sig os.Signal) error {
76+
if !job.HasStarted() {
77+
return nil
78+
}
7679
process, err := os.FindProcess(job.cmd.Process.Pid)
7780
if err != nil {
7881
return err

0 commit comments

Comments
 (0)