summaryrefslogtreecommitdiff
path: root/shmexport.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-06-05 14:41:30 -0700
committerGary E. Miller <gem@rellim.com>2017-06-05 14:41:30 -0700
commit8b3c23336312b6a537916bce2c4b02e0749143bd (patch)
tree8ca45f07008ca9bc6c3d6531868a7c7999312ef3 /shmexport.c
parent059d39d71f85bcb20da508243965a2910f0ed9d5 (diff)
downloadgpsd-8b3c23336312b6a537916bce2c4b02e0749143bd.tar.gz
Revert "Makes 'GPSD' SHM export exclusive."
This reverts commit 3a8d8e8d8219beb1ec01f923ea5a659054941898. This revert fixes the SHM problems in issue #109325 A symptom of the issue: gpsd:ERROR: shmget(0x47505344, 8928, 0666) for SHM export failed: File exists Of course, errors are supposed to abort, but this one did not...
Diffstat (limited to 'shmexport.c')
-rw-r--r--shmexport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shmexport.c b/shmexport.c
index fc9f66e2..806b85c2 100644
--- a/shmexport.c
+++ b/shmexport.c
@@ -39,7 +39,7 @@ bool shm_acquire(struct gps_context_t *context)
{
long shmkey = getenv("GPSD_SHM_KEY") ? strtol(getenv("GPSD_SHM_KEY"), NULL, 0) : GPSD_SHM_KEY;
- int shmid = shmget((key_t)shmkey, sizeof(struct shmexport_t), (int)(IPC_CREAT|IPC_EXCL|0666));
+ int shmid = shmget((key_t)shmkey, sizeof(struct shmexport_t), (int)(IPC_CREAT|0666));
if (shmid == -1) {
gpsd_log(&context->errout, LOG_ERROR,
"shmget(0x%lx, %zd, 0666) for SHM export failed: %s\n",