aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/config/bar.c4
-rw-r--r--sway/config/output.c4
-rw-r--r--sway/swaynag.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c
index f90fcdc0..1c7c13b2 100644
--- a/sway/config/bar.c
+++ b/sway/config/bar.c
@@ -194,7 +194,7 @@ static void invoke_swaybar(struct bar_config *bar) {
sway_log_errno(SWAY_ERROR, "socketpair failed");
return;
}
- if (!set_cloexec(sockets[0], true) || !set_cloexec(sockets[1], true)) {
+ if (!sway_set_cloexec(sockets[0], true) || !sway_set_cloexec(sockets[1], true)) {
return;
}
@@ -222,7 +222,7 @@ static void invoke_swaybar(struct bar_config *bar) {
sway_log_errno(SWAY_ERROR, "fork failed");
_exit(EXIT_FAILURE);
} else if (pid == 0) {
- if (!set_cloexec(sockets[1], false)) {
+ if (!sway_set_cloexec(sockets[1], false)) {
_exit(EXIT_FAILURE);
}
diff --git a/sway/config/output.c b/sway/config/output.c
index 50bf1155..42deec67 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -505,7 +505,7 @@ static bool _spawn_swaybg(char **command) {
sway_log_errno(SWAY_ERROR, "socketpair failed");
return false;
}
- if (!set_cloexec(sockets[0], true) || !set_cloexec(sockets[1], true)) {
+ if (!sway_set_cloexec(sockets[0], true) || !sway_set_cloexec(sockets[1], true)) {
return false;
}
@@ -529,7 +529,7 @@ static bool _spawn_swaybg(char **command) {
sway_log_errno(SWAY_ERROR, "fork failed");
_exit(EXIT_FAILURE);
} else if (pid == 0) {
- if (!set_cloexec(sockets[1], false)) {
+ if (!sway_set_cloexec(sockets[1], false)) {
_exit(EXIT_FAILURE);
}
diff --git a/sway/swaynag.c b/sway/swaynag.c
index 0fca6c71..db5a919a 100644
--- a/sway/swaynag.c
+++ b/sway/swaynag.c
@@ -36,7 +36,7 @@ bool swaynag_spawn(const char *swaynag_command,
sway_log(SWAY_ERROR, "Failed to create pipe for swaynag");
return false;
}
- if (!set_cloexec(swaynag->fd[1], true)) {
+ if (!sway_set_cloexec(swaynag->fd[1], true)) {
goto failed;
}
}
@@ -46,7 +46,7 @@ bool swaynag_spawn(const char *swaynag_command,
sway_log_errno(SWAY_ERROR, "socketpair failed");
goto failed;
}
- if (!set_cloexec(sockets[0], true) || !set_cloexec(sockets[1], true)) {
+ if (!sway_set_cloexec(sockets[0], true) || !sway_set_cloexec(sockets[1], true)) {
goto failed;
}
@@ -69,7 +69,7 @@ bool swaynag_spawn(const char *swaynag_command,
sway_log_errno(SWAY_ERROR, "fork failed");
_exit(EXIT_FAILURE);
} else if (pid == 0) {
- if (!set_cloexec(sockets[1], false)) {
+ if (!sway_set_cloexec(sockets[1], false)) {
_exit(EXIT_FAILURE);
}