| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/command.R |
| 3 |
\name{proc_kill} |
| 4 |
\alias{proc_kill} |
| 5 |
\title{Kill a process and (optionally) all its child processes} |
| 6 |
\usage{ |
| 7 |
proc_kill(pid, recursive = TRUE, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{pid}{The process ID.} |
| 11 |
|
| 12 |
\item{recursive}{Whether to kill the child processes of the process.} |
| 13 |
|
| 14 |
\item{...}{Arguments to be passed to \code{\link[=system2]{system2()}} to run the |
| 15 |
command to kill the process.} |
| 16 |
} |
| 17 |
\value{ |
| 18 |
The status code returned from \code{system2()}. |
| 19 |
} |
| 20 |
\description{ |
| 21 |
Run the command \command{taskkill /f /pid} on Windows and \command{kill} on |
| 22 |
Unix, respectively, to kill a process. |
| 23 |
} |