1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-28 19:01:08 +00:00
restic/backend/sftp/sftp_unix.go
Klaus Post 2dcb527828 Only use Setsid on Unix.
Setsid is not a part of syscall.SysProcAttr on Windows, so we only set that on
systems that have it.
2015-08-14 15:32:07 +02:00

12 lines
174 B
Go

// +build !windows
package sftp
import (
"syscall"
)
func init() {
// ignore signals sent to the parent (e.g. SIGINT)
sysProcAttr = syscall.SysProcAttr{Setsid: true}
}