lkml.org 
[lkml]   [1996]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: agetty and fcntl_setlck()
Date
Thomas König wrote:
>
> pre2.0.6 complains about agetty 1.9.1a (the latest version I could find)
> having a brocken flock() emulation. A look at the sources reveals that
> agetty uses fcntl() directly.
>
> This should be fixed before 2.0 comes out, and noted in ~linux/Changes.

What you're probably seeing is that the routines to write wtmp/utmp
are calling flock() to lock these files while updating them. So as
far as the kernel goes there's nothing to fix. You'll probably be able
to spot the extraneous flock()->fcntl() call by strace'ing agetty.

-Andy

--
Andy Walker Kvaerner Engineering a.s.
Andrew.Walker@lysaker.kvaerner.no P.O. Box 222, N-1324 Lysaker, Norway

......if the answer isn't violence, neither is your silence......



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.038 / U:1.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site