SIGTERM, SIGINT, SIGUSR1, and SIGUSR2 exceptions

SIGTERM, SIGINT, SIGUSR1, and SIGUSR2 exceptions are handled differently for C/370™ V2 and Language Environment® programs.

The differences or incompatibilities are:
  • The defaults for the SIGINT, SIGTERM, SIGUSR1, and SIGUSR2 signals changed in AD/Cycle LE/370 V1R3 from what they were in C/370 V1 and V2 and AD/Cycle LE/370 V1R1 and V2R2. These changes were carried into the Language Environment runtime environment. In the C/370 library and AD/Cycle LE/370 V1R1 and V1R2, the defaults for SIGINT, SIGUSR1, and SIGUSR2 were to ignore the signals. As of AD/Cycle LE/370 V1R3, the defaults are to terminate the program and issue a return code of 3000. For SIGTERM, the default has always been to terminate the program. The return code is "3000"; before, it was "0".
  • Language Environment programs that terminate abnormally will not drive the atexit list.