1833875 Members
1545 Online
110063 Solutions
New Discussion

Re: File descriptors

 
Tim Rotunda
Frequent Advisor

File descriptors

We have a group of global file descriptors, and a group of local file descriptors. The globals are opened and given valid file handles, then a local file descriptor is opened and given the same file descriptor as one of the global file descriptors. How can this be?
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: File descriptors

Hi Tim:

My best explanation is that you are not. I suspect that what is happening is that one of your file descriptors is being closed and then the next open returns the lowest available file descriptor.

If you post a brief section of your code perhaps I can be of more help.

Clay
If it ain't broke, I can fix that.