Create ignoreSigIntProcAttr()
Retrieve the SysProcAttr from a separate function. Completely eliminates syscall from main file.
This commit is contained in:
parent
520b1b65b0
commit
0e7d0d8dba
3 changed files with 16 additions and 7 deletions
11
backend/sftp/sftp_windows.go
Normal file
11
backend/sftp/sftp_windows.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package sftp
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// ignoreSigIntProcAttr returns a default syscall.SysProcAttr
|
||||
// on Windows.
|
||||
func ignoreSigIntProcAttr() *syscall.SysProcAttr {
|
||||
return &syscall.SysProcAttr{}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue