diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-03 00:11:02 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-03 00:11:02 +0000 |
| commit | 8d9ad96b52e5eeeab61a80e09608584172251c72 (patch) | |
| tree | 0429453b209bdd56a91136d9711dec1e5bf606ca /server.c | |
| parent | fdm: bug: 'ret' was renamed to 'r', and replaced with another 'ret' (diff) | |
server: FD_CLOEXEC is a file descriptor flag, not a file status flag
Diffstat (limited to 'server.c')
| -rw-r--r-- | server.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |
