Jump to content

Close a file descriptor


thangappan

Recommended Posts

I am using PHP 5.2.0 version. I used dio_close() function for closing file descriptors.

But it is not working.

Can any one please explain?

 

$limit = posix_getrlimit();

$openfile_limit = $limit['soft openfiles'];

 

for($i =1 ; $i <= $openfile_limit ; $i++){

                  dio_close($i);

 

 

Link to comment
https://forums.phpfreaks.com/topic/147118-close-a-file-descriptor/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.