sorry for long delay...
> > By the way, is there way in gdb to check what filedescriptors are opened
> > in some process, so I could investigate such behaviour in future?
>
> Not that I know of but there are a couple of other tools that may help
> you:
>
> 1. strace/truss, list every systemcall made by the program.
yes. strace is nice tool. Very useful in many obscure moments.
> 2. lsof, list open files with a lot of details (much more than whats
> available in /proc on Linux)
can you clarify what lsof is? I didn't find it on my machine (full
installation of R.H. 4.2)
thanks for the hints
Fyodor