Your message dated Tue, 22 Nov 2005 11:35:39 -0500
with message-id <[EMAIL PROTECTED]>
and subject line fixed in recent uploads of manpages
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 18 Jan 2005 21:35:32 +0000
>From [EMAIL PROTECTED] Tue Jan 18 13:35:32 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mailout1.pacific.net.au [61.8.0.84] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1Cr10d-0005rA-00; Tue, 18 Jan 2005 13:35:31 -0800
Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87])
        by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id 
j0ILZTA6000933
        for <[EMAIL PROTECTED]>; Wed, 19 Jan 2005 08:35:29 +1100
Received: from localhost (ppp2EA0.dyn.pacific.net.au [61.8.46.160])
        by mailproxy2.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id 
j0ILZRxG003103
        for <[EMAIL PROTECTED]>; Wed, 19 Jan 2005 08:35:28 +1100
Received: from gg by localhost with local (Exim 3.36 #1 (Debian))
        id 1Cr10T-0001Gg-00; Wed, 19 Jan 2005 08:35:21 +1100
From: Kevin Ryde <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: manpages-dev: flock(2) second time by same process
Date: Wed, 19 Jan 2005 08:35:21 +1100
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
        HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: manpages-dev
Version: 2.01-1
Severity: normal

The flock(2) man page says

       A  process  may  only  hold one type of lock (shared or exclusive) on a
       file.  Subsequent flock() calls on an already locked file will  convert
       an existing lock to the new lock mode.

I read this as meaning the lock is associated with the process, and I
tried converting a lock through a second opened fd per the test
program below but it hung after printing "about to do second flock".

The lock is actually associated with the file table entry is it?  Or
the table entry plus the process?  Perhaps this can be clarified.


#include <stdio.h>
#include <sys/file.h>

int
main (void)
{
  int x, y, ret;

  x = open ("foo.tmp", O_RDWR | O_CREAT, 0666);
  if (x == -1) perror ("first open");

  ret = flock (x, LOCK_EX);
  if (ret == -1) perror ("first flock");


  y = open ("foo.tmp", O_RDWR);
  if (y == -1) perror ("first open");

  printf ("about to do second flock\n");
  ret = flock (y, LOCK_SH);
  if (ret == -1) perror ("second flock");

  printf ("done\n");
  return 0;
}


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.6.8-1-386
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages manpages-dev depends on:
ii  manpages                      2.01-1     Manual pages about using a GNU/Lin

-- no debconf information

---------------------------------------
Received: (at 291121-done) by bugs.debian.org; 22 Nov 2005 16:35:45 +0000
>From [EMAIL PROTECTED] Tue Nov 22 08:35:45 2005
Return-path: <[EMAIL PROTECTED]>
Received: from ms-smtp-03.nyroc.rr.com ([24.24.2.57])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1Eeb7Q-0005wp-VB; Tue, 22 Nov 2005 08:35:45 -0800
Received: from andromeda (cpe-69-202-136-66.twcny.res.rr.com [69.202.136.66])
        by ms-smtp-03.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id 
jAMGZep4000353;
        Tue, 22 Nov 2005 11:35:40 -0500 (EST)
Received: from pryzbyj by andromeda with local (Exim 4.54)
        id 1Eeb7L-0004Nh-M7; Tue, 22 Nov 2005 11:35:39 -0500
Date: Tue, 22 Nov 2005 11:35:39 -0500
To: [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc: Martin Schulze <[EMAIL PROTECTED]>, Michael Kerrisk <[EMAIL PROTECTED]>
Subject: fixed in recent uploads of manpages
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
From: Justin Pryzby <[EMAIL PROTECTED]>
X-Virus-Scanned: Symantec AntiVirus Scan Engine
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 7

Version: 2.09-1

These bugs are all reported fixed by the upstream manpages maintainer,
Michael Kerrisk.  For my own convenience, I'm marking them all as
"fixed by version 2.09-1", even though some of them are fixed by
earlier uploads.  The bug number, correct fixed-in version, and title
are listed below:

 #317037 2.06 Difficult to understand in sscanf RETURN VALUE
 #315411 2.09 New upstream release: 2.09
 #209323 2.09 please include pty(4) manpage
 #330877 2.09 read can return EINVAL when using O_DIRECT and buffer not aligned
 #321131 2.08 exit.3 missing &quot;is&quot;
 #299795 2.07 Some library functions' manpage use wrong hyphen
 #295666 2.03 regex.7.gz: The word boundary regexps are unsupported
 #326520 2.08 'man msgget' typo: one line not displayed
 #306517 2.04 epoll_ctl(2) description differs from implementation
 #291121 2.04 flock(2) second time by same process
 #323851 2.08 getpwnam.3 manpage should clarify the scope of pw_dir
 #323062 2.08 clone(2) CLONE_PARENT_SETTID description incorrect

 #101433 2.04 "man setitimer" give bad informations
 #113812 2.04 libc6-dev: iconv prototype
 #317037 2.06 Difficult to understand in sscanf RETURN VALUE
 #219695 2.04 sysconf(3): describes _SC_2_DEV, which doesn't exist
 #294890 2.03 Typo in wait(2): "watpid"

-- 
Clear skies,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to