CLOSE_LOADED_OBJECTS

This variable instructs that loaded objects be closed according to the dbclose() function, or delays the closing of objects registered with the atexit() function until just before the exit() function is called.

Upon shutdown, most UNIX runtimes call the dlclose() function on objects that have been loaded. However, on AIX, HP-UX, and FreeBSD runtimes, when an object being closed has registered a function with atexit(), this could cause a crash in exit() because the object is already closed and no longer available to the process. Linux and Solaris runtimes call the functions registered with atexit() just before the object is closed, thus avoiding this problem.

Use the CLOSE_LOADED_OBJECTS configuration variable to manage this problem.

Syntax

CLOSE_LOADED_OBJECTS={0|1}

Parameters

0
Default for Linux and Solaris runtimes. Instructs that loaded objects be closed according to the dbclose() function.
1
Default for AIX, HU-UX, and FreeBSD runtimes. Delays the closing of objects registered with the atexit() function until just before the exit() function is called.
Important: If you want loaded objects to be closed during runtime shutdown, you can set the value to 1 on any system. However, this could cause a crash if the object has registered an atexit() function.