[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#46748: dpkg: [hurd] please lock full file

Package: dpkg
Severity: important


this is one of the many things that needs to be fixed for the Hurd, it is
not release critical for Linux.

Partial file locking is currently not supported in the Hurd. We would like
to fix this, but until this is implemented, please lock the whole file. As
it is a zero length file, this doesn't make a functional difference at all.


diff -ru dpkg-hurd- dpkg-hurd-
--- dpkg-hurd-	Sun Nov  1 17:05:56 1998
+++ dpkg-hurd-	Sat Jul 24 19:45:06 1999
@@ -42,7 +42,7 @@
   fl.l_type= F_UNLCK;
   fl.l_whence= SEEK_SET;
   fl.l_start= 0;
-  fl.l_len= 1;
+  fl.l_len= 0;
   if (fcntl(dblockfd,F_SETLK,&fl) == -1)
     ohshite(_("unable to unlock dpkg status database"));
@@ -72,7 +72,7 @@
   fl.l_type= F_WRLCK;
   fl.l_whence= SEEK_SET;
   fl.l_start= 0;
-  fl.l_len= 1;
+  fl.l_len= 0;
   if (fcntl(dblockfd,F_SETLK,&fl) == -1) {
     if (errno == EWOULDBLOCK || errno == EAGAIN)
       ohshit(_("status database area is locked - another dpkg/dselect is running"));

-- System Information
Debian Release: potato
Kernel Version: Linux ulysses 2.2.12 #7 Mon Sep 27 01:09:52 CEST 1999 i586 unknown

Versions of the packages dpkg depends on:
hi  libc6           2.1.2-0pre11   GNU C Library: Shared libraries and timezone
hi  libstdc++2.10   2.95.2-0pre2   The GNU stdc++ library
ii  libncurses4     4.2-3.3        Shared libraries for terminal handling

Reply to: