[gnome-keyring/wip/fork-fixes] main: read login password before fork()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/wip/fork-fixes] main: read login password before fork()
- Date: Fri, 16 Oct 2015 19:21:32 +0000 (UTC)
commit 1a542fc8c646917c30124bb0dd85b42bac2bddc3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Oct 16 12:21:13 2015 -0700
main: read login password before fork()
daemon/gkd-main.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/daemon/gkd-main.c b/daemon/gkd-main.c
index 6937ddf..31248de 100644
--- a/daemon/gkd-main.c
+++ b/daemon/gkd-main.c
@@ -948,6 +948,11 @@ main (int argc, char *argv[])
exit (0);
}
+ if (perform_unlock) {
+ login_password = read_login_password (STDIN);
+ atexit (clear_login_password);
+ }
+
/* The whole forking and daemonizing dance starts here. */
parent_wakeup_fd = fork_and_print_environment();
@@ -991,11 +996,6 @@ main (int argc, char *argv[])
if (!gkd_control_listen ())
return FALSE;
- if (perform_unlock) {
- login_password = read_login_password (STDIN);
- atexit (clear_login_password);
- }
-
/* The --login option. Delayed initialization */
if (run_for_login) {
timeout_id = g_timeout_add_seconds (LOGIN_TIMEOUT, (GSourceFunc) on_login_timeout, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]