tmux.Running.Kill
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- tmux
- Declared in
- Running
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/session_run.go
- Kill ( ctx : context.Context ) error
-
Kill asks the tmux server to send SIGKILL to the process group running the command. It does not wait for the process to stop; call Wait to observe the resulting status or signal.
Kill runs through
Server.RunShellwith the pane as its target, so tmux resolves the process group id itself, at the moment it runs, on whatever host the server is on, rather than trusting a process id this program read earlier. A pane that no longer exists makes that id resolve empty and Kill a no-op; Kill reports only whether tmux could dispatch the request, not whether a process still existed to receive it.
0 declared, 0 inherited