Hey there.

I was working on some code which uses evas_object_image_memfile_set here
on FreeBSD, and it was failing.

After some investigation, I found out that the problem was in the stat()
call in evas_cache_image_request.

On Linux, _create_tmpf() open()s a temporary file with O_CREAT,
unlink()s it and then changes the actual filename to
/proc/<PID>/fds/<GENERATED-FD>, which exists and reads/writes into the
file descriptor returned by open().

On non-Linux systems, the filename renaming does not happen (since
there's usually no /proc with that structure), so unlink() removes the
file and the stat() in evas_cache_image_request() fails.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to