[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SYSV MSG IPC SEM bug fixed
- To: FreeBSD-hackers <freebsd-hackers@xxxxxxxxxxxxxxxxxx>
- Subject: SYSV MSG IPC SEM bug fixed
- From: John Beukema <jbeukema@xxxxxxxxxxxx>
- Date: Fri, 30 Dec 1994 13:21:22 +0800 (HKT)
- Cc: FreeBSD-questions <FreeBSD-questions@xxxxxxxxxxxxxxxxxx>
- Sender: questions-owner@xxxxxxxxxxx
I finally tracked down the bug causing ipc_perm, messages and semaphores
not to work properly.
In /usr/include/sys/ipc.h
After
#define IPC_R 0400
#define IPC_M 10000 (decimal) should be
^^
#define IPC_M 010000 (octal)
^^
This caused (mode & IPC_M) to always return true and
msg_perm.mode was never evaluated.
As changed, it works fine.
jbeukema