diff --git a/src/cam.c b/src/cam.c index d2a2eb3..92f4387 100644 --- a/src/cam.c +++ b/src/cam.c @@ -94,7 +94,7 @@ static int mk_cam(facilities_t* facilities, uint8_t *cam_oer, uint32_t *cam_len) int rv = 0; int shm_fd, shm_valid = 0; - shm_fd = shm_open("it2s-bluetooth-decoded", O_RDONLY, 0666); + shm_fd = shm_open("it2s-bluetooth-decoded", O_CREAT | O_RDONLY, 0666); if(shm_fd == -1) syslog_err("[facilities] failed to open CAN shared memory\n");