This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9944] New: ftok returning duplicate keys for different files on same device?
- From: "jimdon at sympatico dot ca" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 12 Mar 2009 13:39:54 -0000
- Subject: [Bug libc/9944] New: ftok returning duplicate keys for different files on same device?
- Reply-to: sourceware-bugzilla at sourceware dot org
I have encountered an issue using System V IPC and ftok.
I have two files in my /tmp/ dir with inodes 0x70007 and 0x1370007. When call
ftok on these two files I am obtaining the same 32 bit key_t value.
This results in collisions when two unique process using different files try to
obtain SysV IPC objects using ftok().
Should key_t be only a 32 integer?
I can not find any documentation on 'standard' practice to recover from this
problem so I assume it just may be a bug?
--
Summary: ftok returning duplicate keys for different files on
same device?
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: jimdon at sympatico dot ca
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9944
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.