Skip to content

Commit eb2f58f

Browse files
committed
Use Setpgid = true on macOS
1 parent 6fcc074 commit eb2f58f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cli/run_darwin.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package cli
2+
3+
import "syscall"
4+
5+
func setSysProcAttr(attr *syscall.SysProcAttr) {
6+
attr.Setpgid = true
7+
}

cli/run_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !linux
1+
//go:build !linux && !darwin
22

33
package cli
44

0 commit comments

Comments
 (0)