]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. index:: KILL | |
7 | ||
8 | .. _kill: | |
9 | ||
10 | KILL --- Send a signal to a process | |
11 | *********************************** | |
12 | ||
13 | .. function:: KILL(PID, SIG) | |
14 | ||
15 | Sends the signal specified by :samp:`{SIG}` to the process :samp:`{PID}`. | |
16 | See ``kill(2)``. | |
17 | ||
18 | :param PID: | |
19 | Shall be a scalar ``INTEGER`` with ``INTENT(IN)``. | |
20 | ||
21 | :param SIG: | |
22 | Shall be a scalar ``INTEGER`` with ``INTENT(IN)``. | |
23 | ||
24 | :param STATUS: | |
25 | [Subroutine](Optional) | |
26 | Shall be a scalar ``INTEGER``. | |
27 | Returns 0 on success; otherwise a system-specific error code is returned. | |
28 | ||
29 | :param STATUS: | |
30 | [Function] The kind type parameter is that of | |
31 | ``pid``. | |
32 | Returns 0 on success; otherwise a system-specific error code is returned. | |
33 | ||
34 | Standard: | |
35 | GNU extension | |
36 | ||
37 | Standard: | |
38 | GNU extension | |
39 | ||
40 | Class: | |
41 | Subroutine, function | |
42 | ||
43 | Syntax: | |
44 | .. code-block:: fortran | |
45 | ||
46 | CALL KILL(PID, SIG [, STATUS]) | |
47 | STATUS = KILL(PID, SIG) | |
48 | ||
49 | See also: | |
50 | :ref:`ABORT`, | |
3ed1b4ce | 51 | :ref:`EXIT` |