chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
595aae3
)
man: extend sd-login(7) in regards to mixing D-Bus and synchronous library calls...
author
Lennart Poettering
<lennart@poettering.net>
Mon, 19 Dec 2011 16:40:31 +0000
(17:40 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 19 Dec 2011 16:40:31 +0000
(17:40 +0100)
man/sd-login.xml
patch
|
blob
|
history
diff --git
a/man/sd-login.xml
b/man/sd-login.xml
index 9926d2b85cfd85df91bebb2384d233754fc6c8da..3fc0e16f698c7a177da7e2544445ad20cbb15fbf 100644
(file)
--- a/
man/sd-login.xml
+++ b/
man/sd-login.xml
@@
-77,13
+77,23
@@
you need to utilize the D-Bus API of
systemd-logind, instead.</para>
you need to utilize the D-Bus API of
systemd-logind, instead.</para>
- <para>These functions access data in
+ <para>These functions
synchronously
access data in
<filename>/proc</filename>,
<filename>/sys/fs/cgroup</filename> and
<filename>/run</filename>. All of these are virtual
file systems, hence the runtime cost of the accesses
is relatively cheap.</para>
<filename>/proc</filename>,
<filename>/sys/fs/cgroup</filename> and
<filename>/run</filename>. All of these are virtual
file systems, hence the runtime cost of the accesses
is relatively cheap.</para>
+ <para>It is possible (and often a very good choice) to
+ mix calls to the synchronous interface of
+ <filename>sd-login.h</filename> with the asynchronous
+ D-Bus interface of systemd-logind. However, if this is
+ done you need to think a bit about possible races
+ since the stream of events from D-Bus and from
+ <filename>sd-login.h</filename> interfaces such as the
+ login monitor are asynchronous and not ordered against
+ each other.</para>
+
<para>If the functions return string arrays, these are
generally NULL terminated and need to be freed by the
caller with the libc
<para>If the functions return string arrays, these are
generally NULL terminated and need to be freed by the
caller with the libc