mirror of
https://github.com/restic/restic.git
synced 2024-12-26 01:37:12 +00:00
0e7d0d8dba
Retrieve the SysProcAttr from a separate function. Completely eliminates syscall from main file.
13 lines
242 B
Go
13 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}
|
|
}
|