41 lines
1.9 KiB
HTML
41 lines
1.9 KiB
HTML
<html><!-- This HTML file has been created by texi2html 1.29
|
|
from syscalls.texi on 4 June 1994 -->
|
|
|
|
<TITLE>Syscall specifications of Linux - kill</TITLE>
|
|
<P>Go to the <A HREF="syscalls_92.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_92.html">previous</A>, <A HREF="syscalls_94.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_94.html">next</A> section.<P>
|
|
<H2><A NAME="SEC93" HREF="syscalls_toc.html#SEC93" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC93">kill</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>int kill(pit_t <VAR>pid</VAR>, int <VAR>sig</VAR>);</CODE>
|
|
<P>
|
|
<H3>PARAMETERS</H3>
|
|
<P>
|
|
<VAR>pid</VAR>: [in] the process or process group to send the signal to.
|
|
<P>
|
|
<VAR>sig</VAR>: [in] the signal to send.
|
|
<P>
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
Sends a signal to a process or a process group. If <VAR>pid</VAR> is positive
|
|
then it is send to the process with pid equal to <VAR>pid</VAR>. If <VAR>pid</VAR>
|
|
is -1, the signal is send to every process except the first. If
|
|
<VAR>pid</VAR> is less than -1, the signal is send to the process group with
|
|
group pid equals to -<VAR>pid</VAR>.
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
On success, for <VAR>pid</VAR> less than -1, the number of processes that
|
|
received the signal is returned, for other values of <VAR>pid</VAR>, zero is
|
|
returned. On error -1 is returned and <CODE>errno</CODE> is set to one of the
|
|
following values:
|
|
<P>
|
|
<UL>
|
|
<LI><CODE>EINVAL</CODE>: the value of <VAR>sig</VAR> is invalid.
|
|
<LI><VAR>EPERM</VAR>: the taks does not have superuser privileges and tried
|
|
to send a signal to a process with an effective uid different than the
|
|
effective uid of the current task.
|
|
</UL>
|
|
<P>
|
|
<P>Go to the <A HREF="syscalls_92.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_92.html">previous</A>, <A HREF="syscalls_94.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_94.html">next</A> section.<P>
|