This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fwd: [PATCH] glibc-2.2.5 utmp_file locking and locking question]


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Roland McGrath wrote:
> 
> > The only possible error should be EINTR.  But it does seem reasonable to
> > check for it.  Hmm, actually ENOLCK and EDEADLK might be possible too.
> > 
> > Does anyone know a reason to ignore the fcntl result?
> 
> No reason but that it seemed unnecessary.

They may be obscure and vanishingly rare, but there are cases that could fail.
I have put the checks in.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]