Skip to content

Commit

Permalink
[client] Update sem_open in client to supply mode 0644 (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusCDE committed Dec 23, 2021
1 parent 6f578a0 commit 8366f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int ioctl(int fd, unsigned long request, char *ptr) {

MSGQ.send(update);

sem_t *sem = sem_open(update.sem_name, O_CREAT);
sem_t *sem = sem_open(update.sem_name, O_CREAT, 0644, 0);
struct timespec timeout;
if (clock_gettime(CLOCK_REALTIME, &timeout) == -1) {
// Probably unnecessary fallback
Expand Down

0 comments on commit 8366f70

Please sign in to comment.