Add O_CREAT flag to shm open in mk_cam
This commit is contained in:
parent
025c6308d2
commit
236c16fb1f
|
|
@ -94,7 +94,7 @@ static int mk_cam(facilities_t* facilities, uint8_t *cam_oer, uint32_t *cam_len)
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
int shm_fd, shm_valid = 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)
|
if(shm_fd == -1)
|
||||||
syslog_err("[facilities] failed to open CAN shared memory\n");
|
syslog_err("[facilities] failed to open CAN shared memory\n");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue