Values Returned at Program Termination
An Intel Fortran program can terminate in a number of ways. On Linux
and Mac OS systems, values are returned to the shell.
- The program runs to normal completion. A value of
zero is returned.
The program stops with
a STOP statement. If an integer stop-code is specified, a status equal
to the code is returned; if no stop-code
is specified, a status of zero is returned.
- The program stops because of a signal that is caught
but does not allow the program to continue. A value of 1 is returned.
- The program stops because of a severe run-time error.
The error number for that run-time error is returned. See Overview
of Run-Time Error Messages.
- The program stops with a CALL EXIT statement. The value passed to EXIT is returned.
The program stops with
a CALL ABORT statement. A value of 134 is returned.