[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: open - resource temporarily unavailable



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jun 17, 2016 at 09:03:30PM +0200, Sven Joachim wrote:
> On 2016-06-17 13:31 +0200, tomas@tuxteam.de wrote:
> 
> > OK. I've got one more hint. Reading through the open(2) man page
> > (assuming it is really open what's failing on you -- what evidence
> > do you have?), EAGAIN isn't listed among the possible errno values,
> > but EWOULDBLOCK
> >
> >    EWOULDBLOCK
> >           The O_NONBLOCK flag was specified, and an incompatible
> >           lease was held on the file (see fcntl(2)).
> 
> Thanks, I had only looked at EAGAIN.

Yes, I missed that at first too.

> > Now, on POSIX systems EWOULDBLOCK and EAGAIN could be one and the
> > same.
> 
> On Linux, EWOULDBLOCK is #defined as EAGAIN in asm-generic/errno.h.
> Also they are always the same in the glibc, regardless of the operating
> system kernel.

Thanks for checking!

[...]

> You don't have to write your own program, there is already an 'errno'
> utility in the moreutils package. :-)

Thanks for the hint :-)

regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAldkWIsACgkQBcgs9XrR2kZAqACfXWGraeoxAEBexs0Aw38PW4sR
OSUAn3XKB78drfAUepHV8XipDecv/01F
=fTHI
-----END PGP SIGNATURE-----


Reply to: