in reply to Debug openings and closings

On most Unix systems you can trace system calls (that includes open() and close()) using something like strace (truss in other systems).

Anno