On Wednesday 11 September 2002 08:52, Jeff wrote:
>
> I ran an strace on aptitude without any other instance and once with
> another instance running and diff'd the output and found this:
>
> aptitude:
> < fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0})
> = 0
> < open("/var/lib/dpkg/updates/",
> O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
>
> aptitude Readonly:
> > fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0})
>
> = -1 EAGAIN (Resource temporarily unavailable)
>
> and there's no attempt to open /var/lib/dpkg/updates at all. I check
> that dir and found no files.
I do believe that it's trying to lock (that's the fcntl function) this file
first, then open it. The second time, it can't lock the file, so it doesn't
open it. Seems logical anyway...
> I don't know what this means, but I thought I'd post it incase someone
> does understand this.
>
> jc
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]