Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenSN-Library/OpenSN-Library
/ KillWebShell
Function
KillWebShell
daemon/utils/webshell.go:59–66 ·
view source on GitHub ↗
(pid int)
Source
from the content-addressed store, hash-verified
57
}
58
59
func
KillWebShell(pid int) error {
60
execCmd := exec.Command(
"kill"
,
"-9"
, strconv.Itoa(pid))
61
err := execCmd.Run()
62
if
err != nil {
63
return
err
64
}
65
return
nil
66
}
Callers
nothing calls this directly
Calls
1
Run
Method · 0.65
Tested by
no test coverage detected