404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.119.255.198: ~ $
Frontend Interfaces
===================

This file will try to document some of the interfaces that dpkg makes
available to frontends or that expects them to use, which are currently
not covered by any other type of documentation.


Database Locking
----------------

Any frontend needing to make sure no write operation is currently happening,
and no other frontend is running should first acquire the frontend lock at
«<admindir>/lock-frontend», and then acquire the dpkg database lock at
«<admindir>/lock». When the frontend invokes dpkg, it should set the
environment variable DPKG_FRONTEND_LOCKED (to prevent dpkg from acquiring
the frontend lock), and then release the dpkg database lock, which will be
acquired by dpkg itself. This way no other frontend following this protocol
can race to perform operations while another one has one in progress.

These locks must be file record locks (i.e. fcntl(2) advisory locking), and
the whole file should be locked, as that's the most portable way to perform
this operation; this can be achieved by using start=0, len=0 and
whence=SEEK_SET.

Filemanager

Name Type Size Permission Actions
AUTHORS File 1.21 KB 0644
README.api File 1.51 KB 0644
README.feature-removal-schedule.gz File 2.19 KB 0644
THANKS.gz File 3.25 KB 0644
changelog.Debian.gz File 2.85 KB 0644
copyright File 7.7 KB 0644
frontend.txt File 1.07 KB 0644
rootless-builds.txt.gz File 2.8 KB 0644
triggers.txt.gz File 11.42 KB 0644
usertags.gz File 1.77 KB 0644