detachAttrs returns SysProcAttr configured to place the child in its own process group so that terminal signals delivered to the parent's group (SIGINT, SIGHUP) are not forwarded to the child.
()
| 8 | // process group so that terminal signals delivered to the parent's group |
| 9 | // (SIGINT, SIGHUP) are not forwarded to the child. |
| 10 | func detachAttrs() *syscall.SysProcAttr { |
| 11 | return &syscall.SysProcAttr{Setpgid: true} |
| 12 | } |
no outgoing calls
no test coverage detected