[systemd-devel] systemctl runs systemd-tty-ask-password-agent and hangs?
Lennart Poettering
lennart at poettering.net
Tue Apr 19 17:13:20 PDT 2011
On Tue, 19.04.11 17:02, Albert Strasheim (fullung at gmail.com) wrote:
>
> Hello again
>
> I had the same problem again today trying to start a service.
>
> The last few system calls made by systemd-tty-ask-password-agent are:
>
> 19048 mkdir("/run", 0755) = -1 EEXIST (File exists)
> 19048 mkdir("/run/systemd", 0755) = -1 EEXIST (File exists)
> 19048 mkdir("/run/systemd/ask-password", 0755) = -1 EEXIST (File exists)
> 19048 inotify_init1(O_CLOEXEC) = 4
> 19048 inotify_add_watch(4, "/run/systemd/ask-password",
> IN_CLOSE_WRITE|IN_MOVED_TO) = 1
> 19048 rt_sigprocmask(SIG_SETMASK, [INT TERM], NULL, 8) = 0
> 19048 signalfd4(-1, [INT TERM], 8, O_NONBLOCK|O_CLOEXEC) = 5
> 19048 open("/run/systemd/ask-password",
> O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
> 19048 getdents(6, {{d_ino=9748, d_off=1, d_reclen=24, d_name="."}
> {d_ino=9747, d_off=2, d_reclen=24, d_name=".."}}, 32768) = 48
> 19048 getdents(6, {}, 32768) = 0
> 19048 close(6) = 0
> 19048 poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1
> ([{fd=5, revents=POLLIN}])
>
> I am running systemd-24-1.fc15.x86_64.
>
> Full trace attached.
This looks alright. The agent just creates an inotify on
/run/systemd/ask-password and waits for changes on that.
See http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents for
more information on the precise algorithm.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list