forked from external/yambar
bar/wayland: create comm pipe with CLOEXEC | NONBLOCK
This commit is contained in:
parent
fee0b91174
commit
939b81a4ea
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue