Linux program exit handler, like atexit(3)

Linux program exit handler, like atexit(3)

I need to have a Fortran subroutine executed when my main program ends. Is there a Fortran runtime function for this or is the Linux atexit(3) function sufficient? Will the Fortran runtime still exist when the subroutine is called via atexit? I'm using compiler version 12 on RHEL 5.x, 64-bit for both.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.