pskill(tools)
pskill()所属R语言包:tools
Kill a Process
杀死一个进程
译者:生物统计家园网 机器人LoveR
描述----------Description----------
pskill sends a signal to a process, usually to terminate it.
pskill发出了一个信号到一个进程,通常终止。
用法----------Usage----------
pskill(pid, signal = SIGTERM)
SIGHUP
SIGINT
SIGQUIT
SIGKILL
SIGTERM
SIGSTOP
SIGTSTP
SIGCHLD
SIGUSR1
SIGUSR2
参数----------Arguments----------
参数:pid
positive integers: one or more process IDs as returned by Sys.getpid.
返回Sys.getpid的正整数:一个或多个进程ID。
参数:signal
integer, most often one of the symbolic constants.
整数,最常用的符号常量之一。
Details
详情----------Details----------
Signals are a C99 concept, but only a small number are required to be supported (of those listed, only SIGINT and SIGTERM). They are much more widely used on POSIX operating systems (which should define all of those listed here), which also support a kill system call to send a signal to a process, most often to terminate it. Function pskill provides a wrapper: it silently ignores invalid values of its arguments, including zero or negative pids.
信号是C99的概念,但只有少数须支持(的上市,仅SIGINT和SIGTERM)。他们是更为广泛使用POSIX操作系统(这应该定义在这里列出的所有),这也支持kill系统调用发出一个信号,一个过程,最常见的终止。功能pskill提供了一个包装:它静静地忽略了它的参数值无效,包括零或负PIDS。
In normal use on a Unix-alike, <KBD>Ctrl-C</KBD> sends SIGINT, <KBD>Ctrl-\</KBD> sends SIGQUIT and <KBD>Ctrl-Z</KBD> sends SIGTSTP: that and SIGSTOP suspend a process which can be resumed by SIGCONT.
在正常使用的Unix一样,<KBD>按Ctrl - C </>大骨节病发送SIGINT,<KBD> CTRL-\ </>大骨节病发送SIGQUIT和<KBD>按Ctrl-Z的< /大骨节病>发送SIGTSTP:SIGSTOP暂停由SIGCONT一个可以恢复的进程。
The signals are small integers, but the actual numeric values are not standardized (and most do differ between OSes). The SIG* objects contain the appropriate integer values for the current platform (or NA_INTEGER_ if the signal is not defined).
信号是小整数,但实际数值不规范(和大多数人不同的操作系统之间)。 SIG*对象包含当前平台的适当的整数值(或NA_INTEGER_如果信号没有被定义)。
Only SIGINT and SIGKILL will be defined on Windows, and pskill will always use the Windows system call TerminateProcess.
只有SIGINT和SIGKILL将Windows上的定义,pskill总是会使用Windows系统调用TerminateProcess。
值----------Value----------
A logical vector of the same length as pid, TRUE (for success) or FALSE, invisibly.
pid,TRUE(成功)或FALSE,无形中为相同长度的一个逻辑向量。
参见----------See Also----------
Package parallel has several means to launch child processes which record the process IDs.
包parallel有几种方式启动子进程的进程ID记录。
psnice
psnice
举例----------Examples----------
pskill(c(237, 245), SIGKILL)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|