-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jun 17, 2016 at 09:24:37AM +0000, Andrey wrote: > > Sven Joachim <svenjoac <at> gmx.de> writes: > > > > > On 2016-06-16 21:46 +0600, Andrew P. Cherepenko wrote: > > > > > Hello list, > > > 'open()' for creating file sometimes returns an error: > > > couldn't open "myfile.txt": resource temporarily unavailable > > > either in background process or interactively (ex: in Emacs when > > > trying to save a file). > > > > Are you sure that it's opening the file which fails in that way, and not > > writing to it? > > Yes. I am pretty sure.
If the problem is somehow repeatable, you might try to run your program under strace to actually pinpoint the system call setting EAGAIN (perhaps you've already done that, but I couldn't imply that from your post). Other things to check: does that happen on any files? On a specific file system? If yes: how is that one mounted? regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAldjxrkACgkQBcgs9XrR2kb10QCfbG3dnreanrEM7PkE4C4PO/vI /RwAnRFhCuZYevv8PBzt+50rR9O4v4rm =T3NR -----END PGP SIGNATURE-----