Add O_CREAT flag to shm open in mk_cam

This commit is contained in:
emanuel 2022-01-17 13:22:29 +00:00
parent 025c6308d2
commit 236c16fb1f
1 changed files with 1 additions and 1 deletions

View File

@ -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");