summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/_daemon.c2
-rw-r--r--systemd/docs/daemon.rst2
2 files changed, 3 insertions, 1 deletions
diff --git a/systemd/_daemon.c b/systemd/_daemon.c
index 6b84fb8..f0ab16f 100644
--- a/systemd/_daemon.c
+++ b/systemd/_daemon.c
@@ -51,7 +51,7 @@ static PyObject* booted(PyObject *self, PyObject *args) {
assert(args == NULL);
r = sd_booted();
- if (set_error(r, NULL, NULL))
+ if (set_error(r, NULL, NULL) < 0)
return NULL;
return PyBool_FromLong(r);
diff --git a/systemd/docs/daemon.rst b/systemd/docs/daemon.rst
index 72280ca..0ad11ed 100644
--- a/systemd/docs/daemon.rst
+++ b/systemd/docs/daemon.rst
@@ -14,3 +14,5 @@
.. autofunction:: _is_socket_unix
.. autofunction:: _is_socket_inet
.. autofunction:: _is_mq
+ .. autofunction:: notify
+ .. autofunction:: booted