Skip to content

Commit

Permalink
Feature/cronjob (#13)
Browse files Browse the repository at this point in the history
* fix: support for darwin os
  • Loading branch information
link-duan committed Sep 4, 2020
1 parent 9c93611 commit 2eefd12
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/job/exec_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package job

import "syscall"

func makeCmdAttr() *syscall.SysProcAttr {
return &syscall.SysProcAttr{
Setpgid: true,
}
}

func killProcess(pid int) error {
return syscall.Kill(-pid, syscall.SIGKILL)
}

0 comments on commit 2eefd12

Please sign in to comment.