mirror of
https://github.com/restic/restic.git
synced 2024-08-31 00:27:34 +02:00
Retrieve the SysProcAttr from a separate function. Completely eliminates syscall from main file.
12 lines
198 B
Go
12 lines
198 B
Go
package sftp
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// ignoreSigIntProcAttr returns a default syscall.SysProcAttr
|
|
// on Windows.
|
|
func ignoreSigIntProcAttr() *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{}
|
|
}
|