Mailing List Archive

findif.c
Hi!

I am currently reading myself once more through the heartbeat code and I
just wonder why the filehandle in findif.c is only closed when there is no
matching route found. I suppose that to be a bug, or are filehandles
closed automatically when the prog terminates?

kind regards, +43-676-4708155
Michael Moerz Systemengineer +43-1-718-98-80
CUBiT www.cubit.at
findif.c [ In reply to ]
Michael Moerz wrote:
>
> Hi!
>
> I am currently reading myself once more through the heartbeat code and I
> just wonder why the filehandle in findif.c is only closed when there is no
> matching route found. I suppose that to be a bug, or are filehandles
> closed automatically when the prog terminates?

They are automatically closed when exit is called.

-- Alan Robertson
alanr@bell-labs.com