| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
As with other functions, the wrapper is always present, but returns
OSError: [Errno 38] Function not implemented.
|
| |
|
|
| |
Not particularly useful, but let's have it for completeness.
|
| |
|
|
| |
Later on a proper wrapper in daemon.py should be added.
|
| |
|
|
|
|
|
|
|
| |
In _reader we were raising OSError(errno=ENOSYS), but in _dameon
we were raising NotImplementedError. Let's always use ENOSYS.
Also, make the messages in _reader more specific.
Fixes #33.
|
| |
|
|
| |
Closes #8.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
The 'path' parameter was not properly converted from Unicode
and the functions would always fail when a path was provided.
https://github.com/systemd/python-systemd/pull/4
|
| |
|
|
|
|
| |
The license was originally MIT, but when this module became part of systemd,
it was changed to LGPLv2+. All files had correct headers, so only the LICENSE
file needs updating. Take the opportunity to add classifiers to setup.py.
|
| |
|
|
| |
Just a couple of trivial oversights.
|
| |
|
|
|
|
| |
In practice this shouldn't make much difference, but
sometimes our headers might be newer, and we want to
test them.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
The return value of 0 would be treated as failure by mistake,
resulting in " SystemError: error return without exception set".
The way that set_error() is used is changed to be the same
everywhere.
|
| |
|
|
| |
For some reason sphinx doesn't want to show inherited C functions.
|
| |
|
|
| |
Also export missing flags.
|
| |
|
|
|
| |
_listen_fds() is modified to accept unset_environment arg as keyword,
to match new notify().
|
| | |
|
| | |
|
| |
|
|
| |
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
|
|
|
Please see the documentation (e.g. pydoc3 systemd.daemon) for full
description. As usual, systemd._daemon wraps the raw interface, while
systemd.daemon provides the more pythonic API. sd_listen_fds,
sd_booted, sd_is_fifo, sd_is_socket, sd_is_socket_unix,
sd_is_socket_inet, sd_is_mq, and SD_LISTEN_FDS_START are currently
wrapped.
|