[pkg-fso-commits] [SCM] Automatic Display Manager branch, master, updated. debian/0.1-52-g76526e2
Enrico Zini
enrico at enricozini.org
Mon Feb 23 18:02:47 UTC 2009
The following commit has been merged in the master branch:
commit b5b34b4f16aa25e882c1c5d2ca5428a7afe74d9e
Author: Enrico Zini <enrico at enricozini.org>
Date: Mon Feb 16 19:00:07 2009 +0000
Log when the session is restarted
diff --git a/TODO b/TODO
index 825ef39..d825384 100644
--- a/TODO
+++ b/TODO
@@ -1,6 +1,6 @@
+ Write a binary, repacing "su -l" with it’s own pam configuration name
- - configure via preseeding
+ create a hand-crafted array of sleep times instead of using an
exponential increase. This is to avoid silly steps like "2, 4, 8"
and have something more meaningful instead like "0, 0, 30, 30, 60, 60"
- - log when the session is restarted
+ + log when the session is restarted
+ - configure via preseeding
diff --git a/nodm.c b/nodm.c
index 31b5f80..7a3b8af 100644
--- a/nodm.c
+++ b/nodm.c
@@ -303,6 +303,7 @@ void run_session()
/* Check if the session was too short */
if (end - begin > mst)
{
+ syslog (LOG_WARNING, "Session for %s was shorter than %d seconds: possible problems", name, mst);
if (retry_times[restart_count+1] != -1)
++restart_count;
}
@@ -311,6 +312,7 @@ void run_session()
/* Sleep a bit if the session was too short */
sleep(retry_times[restart_count]);
+ syslog (LOG_INFO, "Restarting session for %s", name);
}
}
--
Automatic Display Manager
More information about the pkg-fso-commits
mailing list