summaryrefslogtreecommitdiffstats
path: root/sway/config/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config/bar.c')
-rw-r--r--sway/config/bar.c4
1 files changed, 2 insertions, 2 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) {
194 sway_log_errno(SWAY_ERROR, "socketpair failed"); 194 sway_log_errno(SWAY_ERROR, "socketpair failed");
195 return; 195 return;
196 } 196 }
197 if (!set_cloexec(sockets[0], true) || !set_cloexec(sockets[1], true)) { 197 if (!sway_set_cloexec(sockets[0], true) || !sway_set_cloexec(sockets[1], true)) {
198 return; 198 return;
199 } 199 }
200 200
@@ -222,7 +222,7 @@ static void invoke_swaybar(struct bar_config *bar) {
222 sway_log_errno(SWAY_ERROR, "fork failed"); 222 sway_log_errno(SWAY_ERROR, "fork failed");
223 _exit(EXIT_FAILURE); 223 _exit(EXIT_FAILURE);
224 } else if (pid == 0) { 224 } else if (pid == 0) {
225 if (!set_cloexec(sockets[1], false)) { 225 if (!sway_set_cloexec(sockets[1], false)) {
226 _exit(EXIT_FAILURE); 226 _exit(EXIT_FAILURE);
227 } 227 }
228 228