summaryrefslogtreecommitdiff
path: root/src/spawn-ask-password-agent.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-11 22:37:13 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-11 22:37:48 +0200
commit9bdc770ccd3e23419a0d908782a661dd81a36bc8 (patch)
tree3664479ac33454ec5a3e378ce1ddca097b20852d /src/spawn-ask-password-agent.c
parent4771148bb92ace55eaa6759a53d04a0f2de9b0d2 (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.c5
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));