From 1df23b5a82644245791f6e17c24af963a3461647 Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Tue, 6 Mar 2018 23:24:12 -0800 Subject: [PATCH] Fix pipe to journal --- binding-mri/journal-binding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)