KILL (The GNU Fortran Compiler) (original) (raw)
8.164 KILL
— Send a signal to a process ¶
Synopsis:
CALL KILL(PID, SIG [, STATUS]) |
---|
STATUS = KILL(PID, SIG) |
Description:
Sends the signal specified by SIG to the process PID. See kill(2)
.
This intrinsic is provided in both subroutine and function forms; however, only one form can be used in any given program unit.
Class:
Subroutine, function
Arguments:
PID | Shall be a scalar INTEGER with INTENT(IN). |
---|---|
SIG | Shall be a scalar INTEGER with INTENT(IN). |
STATUS | [Subroutine](Optional) Shall be a scalar INTEGER. Returns 0 on success; otherwise a system-specific error code is returned. |
STATUS | [Function] The kind type parameter is that ofpid. Returns 0 on success; otherwise a system-specific error code is returned. |
Standard:
GNU extension
See also:
ABORT — Abort the program,
EXIT — Exit the program with status.