summaryrefslogtreecommitdiff
path: root/src/login/logind.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-10-15 19:26:58 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-10-19 15:23:37 +0200
commit6c75e31703140c974227d13667c3e225a1259261 (patch)
treec8748daaa5d3cff055fa5256253be66c5b17329b /src/login/logind.c
parent21fe744cfb72238822a0df9e0b8f06ef95c52ade (diff)
downloadsystemd-6c75e31703140c974227d13667c3e225a1259261.tar.gz
logind: minor indentation adjustments
Diffstat (limited to 'src/login/logind.c')
-rw-r--r--src/login/logind.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index be018a404d..82163343d3 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -922,14 +922,13 @@ static void manager_gc(Manager *m, bool drop_not_started) {
LIST_REMOVE(gc_queue, m->session_gc_queue, session);
session->in_gc_queue = false;
- /* First, if we are not closing yet, initiate stopping */
+ /* First, if we are not closing yet, initiate stopping. */
if (session_may_gc(session, drop_not_started) &&
session_get_state(session) != SESSION_CLOSING)
(void) session_stop(session, /* force = */ false);
- /* Normally, this should make the session referenced
- * again, if it doesn't then let's get rid of it
- * immediately */
+ /* Normally, this should make the session referenced again, if it doesn't then let's get rid
+ * of it immediately. */
if (session_may_gc(session, drop_not_started)) {
(void) session_finalize(session);
session_free(session);
@@ -1177,9 +1176,9 @@ static int run(int argc, char *argv[]) {
if (r < 0)
return r;
- /* Always create the directories people can create inotify watches in. Note that some applications might check
- * for the existence of /run/systemd/seats/ to determine whether logind is available, so please always make
- * sure these directories are created early on and unconditionally. */
+ /* Always create the directories people can create inotify watches in. Note that some applications
+ * might check for the existence of /run/systemd/seats/ to determine whether logind is available, so
+ * please always make sure these directories are created early on and unconditionally. */
(void) mkdir_label("/run/systemd/seats", 0755);
(void) mkdir_label("/run/systemd/users", 0755);
(void) mkdir_label("/run/systemd/sessions", 0755);