From 8b3c23336312b6a537916bce2c4b02e0749143bd Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 5 Jun 2017 14:41:30 -0700 Subject: 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... --- shmexport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shmexport.c') 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", -- cgit v1.2.1