summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/main.c b/main.c
index d6eeae6..7d5f3bb 100644
--- a/main.c
+++ b/main.c
@@ -1251,10 +1251,7 @@ int main(int argc, char **argv) {
}
if (state.args.ready_fd >= 0) {
- // s6 wants a newline and ignores any text before that, systemd wants
- // READY=1, so use the least common denominator
- const char ready_str[] = "READY=1\n";
- if (write(state.args.ready_fd, ready_str, strlen(ready_str)) != strlen(ready_str)) {
+ if (write(state.args.ready_fd, "\n", 1) != 1) {
swaylock_log(LOG_ERROR, "Failed to send readiness notification");
return 2;
}