bar/wayland: create comm pipe with CLOEXEC | NONBLOCK

This commit is contained in:
Daniel Eklöf 2021-10-22 18:06:43 +02:00
parent fee0b91174
commit 939b81a4ea
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1029,7 +1029,7 @@ setup(struct bar *_bar)
assert(backend->monitor == NULL || assert(backend->monitor == NULL ||
backend->width / backend->monitor->scale <= backend->monitor->width_px); backend->width / backend->monitor->scale <= backend->monitor->width_px);
if (pipe(backend->pipe_fds) == -1) { if (pipe2(backend->pipe_fds, O_CLOEXEC | O_NONBLOCK) == -1) {
LOG_ERRNO("failed to create pipe"); LOG_ERRNO("failed to create pipe");
return false; return false;
} }