diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-11 22:37:13 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-11 22:37:48 +0200 |
commit | 9bdc770ccd3e23419a0d908782a661dd81a36bc8 (patch) | |
tree | 3664479ac33454ec5a3e378ce1ddca097b20852d /src/spawn-ask-password-agent.c | |
parent | 4771148bb92ace55eaa6759a53d04a0f2de9b0d2 (diff) |
polkit: when spawning off agent, wait until the agent is fully initialized
Diffstat (limited to 'src/spawn-ask-password-agent.c')
-rw-r--r-- | src/spawn-ask-password-agent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/spawn-ask-password-agent.c b/src/spawn-ask-password-agent.c index 82db08c3a9..c77c71340c 100644 --- a/src/spawn-ask-password-agent.c +++ b/src/spawn-ask-password-agent.c @@ -44,7 +44,10 @@ int ask_password_agent_open(void) { if (!isatty(STDIN_FILENO)) return 0; - r = fork_agent(&agent_pid, SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, "--watch", NULL); + r = fork_agent(&agent_pid, + NULL, 0, + SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, + SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, "--watch", NULL); if (r < 0) log_error("Failed to fork TTY ask password agent: %s", strerror(-r)); |