blob: 87cfac866e324d03bb99e41006371c0066743e31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ak,v 1.2 2011/05/22 19:11:42 dholland Exp $
- fix semget?
--- dpteng/semaphor.c.orig Fri Dec 13 14:16:50 2002
+++ dpteng/semaphor.c Fri Dec 13 14:17:22 2002
@@ -204,7 +204,7 @@
// Get the semaphore handle and create it if it isn't already there.
// Let other processes access it as well
- rtnVal->semID = semget(key, 1, IPC_CREAT | S_IRWXU | S_IRWXG);
+ rtnVal->semID = semget(key, 1, IPC_CREAT | S_IRUSR | S_IWUSR);
if (rtnVal->semID == -1) {
if (Verbose)
@@ -328,7 +328,7 @@
// Get the semaphore ID for the block of unnamed semaphores
- LocalSemID = semget(key, MAX_LOCAL_SEM, IPC_CREAT);
+ LocalSemID = semget(key, MAX_LOCAL_SEM, IPC_CREAT | S_IWUSR | S_IRUSR);
if (LocalSemID == -1) {
|