2dcb527828
Setsid is not a part of syscall.SysProcAttr on Windows, so we only set that on systems that have it.
12 lines
174 B
Go
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}
|
|
}
|