forked from pool/python-systemd
Matej Cepl
d8dcd56a76
* Adapt the rename of systemd-activate to systemd-socket-activate performed in systemd 230. * Support for sd_listen_fds_with_names added in systemd 227. * Support for sd_journal_get_cutoff_realtime_usec added in systemd 186. * Make the Reader PY_SSIZE_T_CLEAN for py3.10 compatibility. * id128: update for systemd-243 compatibility and other fixes. * C syntax modernization. A minimum of C99 is assumed. * Fix seek_realtime to work with timezone aware date on Python 3. * journal: add namespace support. * Fixes for memory leaks and documentation. * Support for Python 2 will be removed after this release. - Remove upstreamed 0002-reader-make-PY_SSIZE_T_CLEAN.patch. - Skip two failing tests (gh#systemd/python-systemd#118) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-systemd?expand=0&rev=23
21 lines
697 B
Diff
21 lines
697 B
Diff
---
|
|
systemd/_daemon.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/systemd/_daemon.c
|
|
+++ b/systemd/_daemon.c
|
|
@@ -121,11 +121,12 @@ static PyObject* notify(PyObject *self,
|
|
return NULL;
|
|
|
|
for (i = 0; i < len; i++) {
|
|
+ long value;
|
|
_cleanup_Py_DECREF_ PyObject *item = PySequence_GetItem(fds, i);
|
|
if (!item)
|
|
return NULL;
|
|
|
|
- long value = PyLong_AsLong(item);
|
|
+ value = PyLong_AsLong(item);
|
|
if (PyErr_Occurred())
|
|
return NULL;
|
|
|