mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
server: FD_CLOEXEC is a file descriptor flag, not a file status flag
This commit is contained in:
parent
e09bda322a
commit
8d9ad96b52
1 changed files with 1 additions and 1 deletions
2
server.c
2
server.c
|
|
@ -291,7 +291,7 @@ server_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl)
|
|||
|
||||
unlink(sock_path);
|
||||
|
||||
if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | FD_CLOEXEC) < 0) {
|
||||
if (fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC) < 0) {
|
||||
LOG_ERRNO("failed to set FD_CLOEXEC on socket");
|
||||
goto err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue