mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-08 21:01:01 +10:00
27 lines
445 B
Go
27 lines
445 B
Go
// +build windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
const osHaveSigTerm = false
|
|
|
|
func ShellInvocationCommand(interactive bool, root, command string) []string {
|
|
return []string{"cmd", "/C", command}
|
|
}
|
|
|
|
func (p *Process) PlatformSpecificInit() {
|
|
// NOP on windows for now.
|
|
return
|
|
}
|
|
|
|
func (p *Process) SendSigTerm() {
|
|
panic("SendSigTerm() not implemented on this platform")
|
|
}
|
|
|
|
func (p *Process) SendSigKill() {
|
|
p.Signal(syscall.SIGKILL)
|
|
}
|