diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-15 15:35:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-21 19:29:45 +0200 |
commit | 34ca941cec76bbfdfd02c705b76bc1b53ea2bcd1 (patch) | |
tree | b81128a17066a21c8da2bd767c581e9fea5cf1f1 /src/user-sessions.c | |
parent | 5f4b19f4bc4b6e747ca19f53ef33a167ecf9ac0b (diff) |
util: make a couple of files we write atomic
Diffstat (limited to 'src/user-sessions.c')
-rw-r--r-- | src/user-sessions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user-sessions.c b/src/user-sessions.c index e045b88c10..ffb8657436 100644 --- a/src/user-sessions.c +++ b/src/user-sessions.c @@ -67,7 +67,7 @@ int main(int argc, char*argv[]) { int r, q; char *cgroup_user_tree = NULL; - if ((r = write_one_line_file("/run/nologin", "System is going down.")) < 0) + if ((r = write_one_line_file_atomic("/run/nologin", "System is going down.")) < 0) log_error("Failed to create /run/nologin: %s", strerror(-r)); if ((q = cg_get_user_path(&cgroup_user_tree)) < 0) { |