× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The program was working fine on every month end until it bombed on the last one with the following error message EMFILE 3452 (Too many open files for this process). I understand that the maximum number of file descriptors has been reached. How do I change the maximum allowed value of opened file descriptors?

I think the problem is more likely that you're not closing a file or directory properly. I simply can't imagine that you legitimately have hundreds of file descriptors open.

In my rpg I use the c function (Eval Rc = Close(Err_Flag)) to close the processed file.

The parameter to the close() API is the descriptor that you want to close. It's not an error flag.

Does your program check to see if Rc is -1? If it is, it means that the close is failing and therefore something is wrong with your code.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.