2015-08-14 13:32:07 +00:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package sftp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2015-08-16 10:51:01 +00:00
|
|
|
// ignoreSigIntProcAttr returns a syscall.SysProcAttr that
|
|
|
|
// disables SIGINT on parent.
|
|
|
|
func ignoreSigIntProcAttr() *syscall.SysProcAttr {
|
|
|
|
return &syscall.SysProcAttr{Setsid: true}
|
2015-08-14 13:32:07 +00:00
|
|
|
}
|