diff --git a/binding-mri/journal-binding.cpp b/binding-mri/journal-binding.cpp index db8497a..37b77e3 100644 --- a/binding-mri/journal-binding.cpp +++ b/binding-mri/journal-binding.cpp @@ -70,7 +70,7 @@ int server_thread(void *data) } CloseHandle(pipe); #else - out_pipe = open(PIPE_PATH, O_WRONLY); + out_pipe = open(PIPE_PATH, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); active = true; SDL_LockMutex(mutex); if (message_len > 0)