Definition | #include <stdlib.h> void exit(int status); (nicht C11) _Noreturn void exit(int status); (C11) void _exit(int status); | |
| terminates the program. First, the termination routines registered with the
| |
| also terminate the program. In contrast to Depending on the value of the status parameter, the status indicator of the monitoring job variable (1st to 3rd byte) is set to the value "$T " or "$A ". | |
Parameters | int status This parameter may contain the following values:
causes normal program termination. The status indicator of the
causes a so-called job-step termination:
The status indicator of the
If this value is not equal to the predefined values EXIT_SUCCESS and EXIT_FAILURE ( If this value corresponds to the predefined values | |
Notes | Functions registered by In order to be able to set and query monitoring job variables, you must start the C program with the following command:
The content of the job variable can then be queried, e.g. with the following command:
Further information on job monitoring using monitoring job variables can be found in the "Job Variables" manual. | |
See also | abort, atexit, at_quick_exit, bs2exit, quick_exit, signal |