ev_attachment_open does blocking IO
@chpe
Submitted by Christian Persch Link to original bug (#599541)
Description
ev_attachment_open() is called from the main thread, but does blocking IO by using g_file_query_exists() or ev_attachment_save(). Now these are local files so probably it's not too bad, but I think we can at least lost the exists() check:
"Note that in many cases it is racy to first check for file existence and then execute something based on the outcome of that, because the file might have been created or removed in between the operations. The general approach to handling that is to not check, but just do the operation and handle the errors as they come."
Version: git master