killpg.2
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 51 行
2
51 行
.\" SCCSID: @(#)killpg.2 6.2 6/15/89.TH killpg 2.SH Namekillpg \- send signal to process or process group.SH Syntaxkillpg(\fIpgrp, sig\fP).brint \fIpgrp, sig\fP;.SH Description.NXR "killpg system call".NXR "process group" "signaling"The.PN killpgsystem call sends the signal.I sigto the process group.IR pgrp .See .MS sigvec 2for a list of signals..PPThe sending process and members of the process group musthave the same effective user ID, otherwisethis call is restricted to the superuser with the exceptionof the signal SIGCONT. The signal SIGCONT can be sent toany process which is a descendant of the current process..SH Return ValuesUpon successful completion, a value of 0 is returned. Otherwise,a value of \-1 is returned, and the global variable .I errnois set to indicate the error..SH DiagnosticsThe.PN killpgsystem call fails and a signal is not sent under the followingconditions:.TP 15[EINVAL]The \fIsig\fP is not a valid signal number..TP 15[EPERM]The sending process is not the superuser and allof the target processes have an effective user ID that differsfrom that of the sending process..TP 15[ESRCH]No process can be found corresponding to that specified by.I pgrp..SH See Alsogetpgrp(2), kill(2), sigvec(2)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?