summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-27 13:50:41 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-27 13:50:41 +0800
commita474aed2d57deaadb2fa0715a4483639f1290e70 (patch)
treecd9ff22799d03f3d0761298235f55404b3bddcca /mbbsd/cache.c
parent72fceb073eb682307a2dd96f5007abdf138a1d4a (diff)
downloadpttbbs-a474aed2d57deaadb2fa0715a4483639f1290e70.tar
pttbbs-a474aed2d57deaadb2fa0715a4483639f1290e70.tar.gz
pttbbs-a474aed2d57deaadb2fa0715a4483639f1290e70.tar.bz2
pttbbs-a474aed2d57deaadb2fa0715a4483639f1290e70.tar.lz
pttbbs-a474aed2d57deaadb2fa0715a4483639f1290e70.tar.xz
pttbbs-a474aed2d57deaadb2fa0715a4483639f1290e70.tar.zst
pttbbs-a474aed2d57deaadb2fa0715a4483639f1290e70.zip
SHM should be created by uhash_loader, NOT by mbbsd
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@678 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 023ac8a7..992b6721 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.58 2003/02/10 17:41:45 in2 Exp $ */
+/* $Id: cache.c,v 1.59 2003/02/27 05:50:41 in2 Exp $ */
#include "bbs.h"
#ifndef __FreeBSD__
@@ -70,12 +70,8 @@ attach_shm(int shmkey, int shmsize)
shmid = shmget(shmkey, shmsize, 0);
if (shmid < 0) {
- shmid = shmget(shmkey, shmsize, IPC_CREAT | 0600);
- if (shmid < 0)
- attach_err(shmkey, "shmget");
- shmptr = (void *)shmat(shmid, NULL, 0);
- if (shmptr == (void *)-1)
- attach_err(shmkey, "shmat");
+ // SHM should be created by uhash_loader, NOT mbbsd.
+ attach_err(shmkey, "shmget");
} else {
shmptr = (void *)shmat(shmid, NULL, 0);
if (shmptr == (void *)-1)