File: proc_kill.Rd

package info (click to toggle)
r-cran-xfun 0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 680 kB
  • sloc: ansic: 242; sh: 22; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/command.R
\name{proc_kill}
\alias{proc_kill}
\title{Kill a process and (optionally) all its child processes}
\usage{
proc_kill(pid, recursive = TRUE, ...)
}
\arguments{
\item{pid}{The process ID.}

\item{recursive}{Whether to kill the child processes of the process.}

\item{...}{Arguments to be passed to \code{\link{system2}()} to run the
command to kill the process.}
}
\value{
The status code returned from \code{system2()}.
}
\description{
Run the command \command{taskkill /f /pid} on Windows and \command{kill} on
Unix, respectively, to kill a process.
}