mirror of
https://github.com/octoleo/restic.git
synced 2024-11-02 19:49:44 +00:00
14 lines
242 B
Go
14 lines
242 B
Go
// +build !windows
|
|
|
|
package sftp
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// ignoreSigIntProcAttr returns a syscall.SysProcAttr that
|
|
// disables SIGINT on parent.
|
|
func ignoreSigIntProcAttr() *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{Setsid: true}
|
|
}
|