chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: check whether newly created session is active
[elogind.git]
/
src
/
shutdownd.c
diff --git
a/src/shutdownd.c
b/src/shutdownd.c
index 8f765b45172388d89076a527ef81d4522636e3b2..13819417c3f5da1047aad14c5b9c129a909b894c 100644
(file)
--- a/
src/shutdownd.c
+++ b/
src/shutdownd.c
@@
-320,7
+320,7
@@
int main(int argc, char *argv[]) {
log_info("Creating /run/nologin, blocking further logins...");
log_info("Creating /run/nologin, blocking further logins...");
- if ((e = write_one_line_file("/run/nologin", "System is going down.")) < 0)
+ if ((e = write_one_line_file
_atomic
("/run/nologin", "System is going down.")) < 0)
log_error("Failed to create /run/nologin: %s", strerror(-e));
else
unlink_nologin = true;
log_error("Failed to create /run/nologin: %s", strerror(-e));
else
unlink_nologin = true;