Aarkan
Aarkan

Reputation: 4109

Error in creating temp files on mac os

Om mac OS 10.6.7, I am creating some files in the temp directory. After a while I start getting failure in open syscall and error returned is 24 which means disk full. I checked the disk space and still 80GB is available. Are there any restrictions or special quota on temporary directory? I used following flags to open the file: open(path, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)

The RAM usage is fairly high during this point, (around 90%), but I dont think it should affect the file open especially when it says disk full as the returned error.

Did anyone face such a situation?

Upvotes: 1

Views: 321

Answers (2)

Jeegar Patel
Jeegar Patel

Reputation: 27230

this error code 24 is for EMFILE

which indicates that maximum files are already open by current process so now more files can not be opened. So changes some how the maximum limit of opened file per process in your system or try to close files after usages if possible then

if i remember then maximum files open at a time in one process is 20 by default.

Upvotes: 0

ott--
ott--

Reputation: 5722

Error 24 is EMFILE meaning too many open files.

Upvotes: 3

Related Questions