From 704371313167a64756be4d5d682e7ff49e3a9937 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Tue, 30 May 2023 15:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=92=E6=96=A5=E9=94=81=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E5=86=85=E5=AD=98=E5=88=9B=E5=BB=BA=E6=9D=83=E9=99=90=E4=BB=8E?= =?UTF-8?q?0600=E6=9B=B4=E6=94=B9=E4=B8=BA0666=EF=BC=88root=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B8=8B=E5=88=9B=E5=BB=BA=E7=9A=84=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E5=86=85=E5=AD=98=E6=99=AE=E9=80=9A=E7=94=A8=E6=88=B7=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=AE=BF=E9=97=AE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_ipc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hgdriver/hgdev/hg_ipc.cpp b/hgdriver/hgdev/hg_ipc.cpp index f396cb4..f5122c2 100644 --- a/hgdriver/hgdev/hg_ipc.cpp +++ b/hgdriver/hgdev/hg_ipc.cpp @@ -173,7 +173,7 @@ void shared_memory::init(void) first_ = !(GetLastError() == ERROR_ALREADY_EXISTS); obj_ = (void*)h; #else - int obj = shmget(key_, bytes_, IPC_EXCL | IPC_CREAT | 0600); + int obj = shmget(key_, bytes_, IPC_EXCL | IPC_CREAT | 0666); if (obj < 0) { unsigned int* v = (unsigned int*)&key_;