diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-02-20 11:08:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-20 11:08:34 -0500 |
commit | 18600f457be7a538e39914c37b72fee1a933ebe1 (patch) | |
tree | 0ed5fd18d49a97a33a0500604639e138be521aeb /xwayland/xwayland.c | |
parent | 50011e7170d1d6a58a6b1e4997da6ce105180481 (diff) | |
parent | cfe7e28416323c1384b95a4eeb377c738444f063 (diff) |
Merge pull request #1564 from emersion/remove-sock-cloexec
xwayland: remove remaining SOCK_CLOEXEC
Diffstat (limited to 'xwayland/xwayland.c')
-rw-r--r-- | xwayland/xwayland.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index be2e34d9..c01acb33 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -32,24 +32,6 @@ static void safe_close(int fd) { } } -static bool set_cloexec(int fd, bool cloexec) { - int flags = fcntl(fd, F_GETFD); - if (flags == -1) { - wlr_log_errno(WLR_ERROR, "fcntl failed"); - return false; - } - if (cloexec) { - flags = flags | FD_CLOEXEC; - } else { - flags = flags & ~FD_CLOEXEC; - } - if (fcntl(fd, F_SETFD, flags) == -1) { - wlr_log_errno(WLR_ERROR, "fcntl failed"); - return false; - } - return true; -} - static int fill_arg(char ***argv, const char *fmt, ...) { int len; char **cur_arg = *argv; |