aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwayland.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-02-20 11:21:42 +0100
committeremersion <contact@emersion.fr>2019-02-20 17:04:00 +0100
commitcfe7e28416323c1384b95a4eeb377c738444f063 (patch)
tree0ed5fd18d49a97a33a0500604639e138be521aeb /xwayland/xwayland.c
parent50011e7170d1d6a58a6b1e4997da6ce105180481 (diff)
xwayland: remove remaining SOCK_CLOEXEC
Diffstat (limited to 'xwayland/xwayland.c')
-rw-r--r--xwayland/xwayland.c18
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;