# Values Returned at Program Termination

An Intel® Fortran program can terminate in a number of ways. On Linux* and macOS, values are returned to the shell.

- The program runs to normal completion. A value of zero is returned.

- The program stops with a STOP or ERROR 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 Understanding Run-Time Errors and related topics.

- 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.

Parent topic: Run-Time Errors

## See Also

Understanding Run-Time Errors