flock failed to lock maps file: errno = 35

This morning when launching my OS X application in XCode it it logs two strange messages that I haven't seen before:


2018-07-29 12:11:57.265197-0600 appname[1642:302161] flock failed to lock maps file: errno = 35

2018-07-29 12:11:57.265620-0600 appname[1642:302161] flock failed to lock maps file: errno = 35


In the header file sys/errno.h this is defined as:


/* non-blocking and interrupt i/o */

#define EAGAIN 35 /* Resource temporarily unavailable */


This isn't a fatal error, the app runs normally after this. The project appears to log this before the multiple doc appplication loads its first doc window. I don't think I changed anything since yesterday when this wasn't happening.


What does this mean and how can I fix it?

Answered by Tlaloc in 324784022

Restarting my Mac and cleaning and rebuilding the project fixed this.

Accepted Answer

Restarting my Mac and cleaning and rebuilding the project fixed this.

I tried this also but it did not work for me; further research led to the determination that the messages are posted when I have a 'production' copy of my program running at the same time that also has the database file open. Yes...bad practice, but no major mishap has occurred so far and back-ups abound.

Thank-you, NSBob! I was running two versions of the same Mac app. Closing the production one, resolved the problem. No database was involved.

flock failed to lock maps file: errno = 35
 
 
Q