This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [Fwd: [PATCH] glibc-2.2.5 utmp_file locking and locking question]
- From: Roland McGrath <roland at frob dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: "Amit D. Chaudhary" <amitc at brocade dot com>,libc-alpha at sources dot redhat dot com
- Date: Sun, 25 Aug 2002 19:14:07 -0400 (EDT)
- Subject: 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.