mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
adding O_RDWR flag in the open()
According to the manual of open: "The argument flags must include one of the following access modes: O_RDONLY, O_WRONLY, or O_RDWR."
This commit is contained in:
parent
4162863c41
commit
8e0513410d
1 changed files with 1 additions and 1 deletions
|
|
@ -1435,7 +1435,7 @@ wl_socket_lock(struct wl_socket *socket)
|
|||
snprintf(socket->lock_addr, sizeof socket->lock_addr,
|
||||
"%s%s", socket->addr.sun_path, LOCK_SUFFIX);
|
||||
|
||||
socket->fd_lock = open(socket->lock_addr, O_CREAT | O_CLOEXEC,
|
||||
socket->fd_lock = open(socket->lock_addr, O_CREAT | O_CLOEXEC | O_RDWR,
|
||||
(S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP));
|
||||
|
||||
if (socket->fd_lock < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue