summaryrefslogtreecommitdiffstats
path: root/golib/eows/eows-signal_windows.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2019-04-04 23:45:56 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2019-04-04 23:45:56 +0200
commit89ea6ebd3671e6ebbf6101525a5416427806f318 (patch)
tree5db52146365a9c2c439b77485f938cc8c2e3a727 /golib/eows/eows-signal_windows.go
parentee147062c3bebed83e34bf5ce71019c95f62b96f (diff)
Fixed package tree and go mod filev0.5.0
Change-Id: I1047094d5b80d0622e2c2ce674979f18207b8c0f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'golib/eows/eows-signal_windows.go')
-rw-r--r--golib/eows/eows-signal_windows.go43
1 files changed, 0 insertions, 43 deletions
diff --git a/golib/eows/eows-signal_windows.go b/golib/eows/eows-signal_windows.go
deleted file mode 100644
index 23ad924..0000000
--- a/golib/eows/eows-signal_windows.go
+++ /dev/null
@@ -1,43 +0,0 @@
-package eows
-
-// +build windows
-
-// Signal sends a signal to the running command / process
-func (e *ExecOverWS) Signal(signal string) error {
- panic("FIXME: Not implemented")
- /*
- var sig os.Signal
- switch signal {
- case "quit", "SIGQUIT":
- sig = syscall.SIGQUIT
- case "terminated", "SIGTERM":
- sig = syscall.SIGTERM
- case "interrupt", "SIGINT":
- sig = syscall.SIGINT
- case "aborted", "SIGABRT":
- sig = syscall.SIGABRT
- case "continued", "SIGCONT":
- sig = syscall.SIGCONT
- case "hangup", "SIGHUP":
- sig = syscall.SIGHUP
- case "killed", "SIGKILL":
- sig = syscall.SIGKILL
- case "stopped (signal)", "SIGSTOP":
- sig = syscall.SIGSTOP
- case "stopped", "SIGTSTP":
- sig = syscall.SIGTSTP
- case "user defined signal 1", "SIGUSR1":
- sig = syscall.SIGUSR1
- case "user defined signal 2", "SIGUSR2":
- sig = syscall.SIGUSR2
- default:
- return fmt.Errorf("Unsupported signal")
- }
-
- if e.proc == nil {
- return fmt.Errorf("Cannot retrieve process")
- }
- fmt.Printf("SEND signal %v to proc %v\n", sig, e.proc.Pid)
- return e.proc.Signal(sig)
- */
-}