~scoopta/wlrobs

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Set mode when creating shm object

Jan Beich
Details
Message ID
<eey2-2oz5-wny@FreeBSD.org>
DKIM signature
missing
Download raw message
Patch: +2 -1
Similar to https://github.com/cyclopsian/wdisplays/pull/6

$ obs
[...]
info: Loaded scenes:
info: - scene 'Scene':
info:     - source: 'Wayland output' (wlrobs)
info: ------------------------------------------------
dup failed: Bad file descriptor
Abort

$ posixshmcontrol ls
MODE            OWNER   GROUP   SIZE    PATH
---------       foo     foo     33177600        /wlrobs
---
 src/outputs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/outputs.c b/src/outputs.c
index 56eb0d1..085733e 100644
--- a/src/outputs.c
+++ b/src/outputs.c
@@ -36,6 +36,7 @@
#include <stdarg.h>

#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

@@ -190,7 +191,7 @@ static int create_shm_file(size_t size, const char *fmt, ...) {
    return -1;
  }

  fd = shm_open(shm_name, O_CREAT | O_RDWR, 0);
  fd = shm_open(shm_name, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
  if (fd == -1) {
    fprintf(stderr, "shm_open: %s\n", strerror(errno));
    free(shm_name);
Scoopta
Details
Message ID
<dc37e46f-9c4c-240a-c3b4-4af5b179ade8@scoopta.email>
In-Reply-To
<eey2-2oz5-wny@FreeBSD.org> (view parent)
DKIM signature
missing
Download raw message
I marked this as superseded by the other patch
Reply to thread Export thread (mbox)